vendor: update golang.org/x/crypto/ssh

Related to #4160
This commit is contained in:
Unknwon
2017-03-01 21:33:58 -05:00
parent 038b107c3d
commit 600f748cb0
14 changed files with 462 additions and 185 deletions

View File

@@ -30,8 +30,10 @@ func (c *connection) clientAuthenticate(config *ClientConfig) error {
// then any untried methods suggested by the server.
tried := make(map[string]bool)
var lastMethods []string
sessionID := c.transport.getSessionID()
for auth := AuthMethod(new(noneAuth)); auth != nil; {
ok, methods, err := auth.auth(c.transport.getSessionID(), config.User, c.transport, config.Rand)
ok, methods, err := auth.auth(sessionID, config.User, c.transport, config.Rand)
if err != nil {
return err
}