]> Cypherpunks repositories - gostls13.git/commit
exp/ssh: allow for msgUserAuthBanner during authentication
authorGustav Paul <gustav.paul@gmail.com>
Fri, 2 Dec 2011 15:34:42 +0000 (10:34 -0500)
committerAdam Langley <agl@golang.org>
Fri, 2 Dec 2011 15:34:42 +0000 (10:34 -0500)
commitbd9dc3d55f65dce03be6d4ebbc7baaeb8e2a8964
treef1349813053d4d82c5c827dc9ff48562869a5866
parent6f0ef845e6c2e56712ee458a605f08386fe539ee
exp/ssh: allow for msgUserAuthBanner during authentication

The SSH spec allows for the server to send a banner message to the client at any point during the authentication process. Currently the ssh client auth types all assume that the first response from the server after issuing a userAuthRequestMsg will be one of a couple of possible authentication success/failure messages. This means that client authentication breaks if the ssh server being connected to has a banner message configured.

This changeset refactors the noneAuth, passwordAuth and publickeyAuth types' auth() function and allows for msgUserAuthBanner during authentication.

R=golang-dev, rsc, dave, agl
CC=golang-dev
https://golang.org/cl/5432065
src/pkg/exp/ssh/client_auth.go