Import x/net/crypto/ssh with alias gossh

This commit is contained in:
Aidan Steele 2019-01-07 08:09:35 +11:00 committed by GitHub
parent 6dcd5356b5
commit c2883aad47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
ssh.go

@ -2,7 +2,7 @@ package ssh
import (
"crypto/subtle"
"golang.org/x/crypto/ssh"
gossh "golang.org/x/crypto/ssh"
"net"
)
@ -41,7 +41,7 @@ type PublicKeyHandler func(ctx Context, key PublicKey) bool
type PasswordHandler func(ctx Context, password string) bool
// KeyboardInteractiveHandler is a callback for performing keyboard-interactive authentication.
type KeyboardInteractiveHandler func(ctx Context, challenger ssh.KeyboardInteractiveChallenge) bool
type KeyboardInteractiveHandler func(ctx Context, challenger gossh.KeyboardInteractiveChallenge) bool
// PtyCallback is a hook for allowing PTY sessions.
type PtyCallback func(ctx Context, pty Pty) bool