Skip to content

Commit

Permalink
Import x/net/crypto/ssh with alias gossh
Browse files Browse the repository at this point in the history
  • Loading branch information
aidansteele authored Jan 6, 2019
1 parent 6dcd535 commit c2883aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package ssh

import (
"crypto/subtle"
"golang.org/x/crypto/ssh"
gossh "golang.org/x/crypto/ssh"
"net"
)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c2883aa

Please sign in to comment.