glider-ssh/wrap.go

24 lines
436 B
Go
Raw Normal View History

2016-10-03 21:54:17 +00:00
package ssh
import gossh "golang.org/x/crypto/ssh"
type PublicKey interface {
gossh.PublicKey
}
type Permissions struct {
*gossh.Permissions
}
type Signer interface {
gossh.Signer
}
func ParseAuthorizedKey(in []byte) (out PublicKey, comment string, options []string, rest []byte, err error) {
return gossh.ParseAuthorizedKey(in)
}
func ParsePublicKey(in []byte) (out PublicKey, err error) {
return gossh.ParsePublicKey(in)
}