Import x/net/crypto/ssh with alias gossh
This commit is contained in:
parent
6dcd5356b5
commit
c2883aad47
4
ssh.go
4
ssh.go
@ -2,7 +2,7 @@ package ssh
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/subtle"
|
"crypto/subtle"
|
||||||
"golang.org/x/crypto/ssh"
|
gossh "golang.org/x/crypto/ssh"
|
||||||
"net"
|
"net"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ type PublicKeyHandler func(ctx Context, key PublicKey) bool
|
|||||||
type PasswordHandler func(ctx Context, password string) bool
|
type PasswordHandler func(ctx Context, password string) bool
|
||||||
|
|
||||||
// KeyboardInteractiveHandler is a callback for performing keyboard-interactive authentication.
|
// 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.
|
// PtyCallback is a hook for allowing PTY sessions.
|
||||||
type PtyCallback func(ctx Context, pty Pty) bool
|
type PtyCallback func(ctx Context, pty Pty) bool
|
||||||
|
Loading…
Reference in New Issue
Block a user