Browse Source

crypto/ssh: Handle msgUserAuthBanner during keyboard-interactive auth.

R=agl, golang-dev
CC=golang-dev
https://golang.org/cl/12983046
JP Sugarbroad 12 years ago
parent
commit
504f1d5525
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ssh/client_auth.go

+ 3 - 0
ssh/client_auth.go

@@ -441,6 +441,9 @@ func (c *keyboardInteractiveAuth) auth(session []byte, user string, t *transport
 
 
 		// like handleAuthResponse, but with less options.
 		// like handleAuthResponse, but with less options.
 		switch packet[0] {
 		switch packet[0] {
+		case msgUserAuthBanner:
+			// TODO: Print banners during userauth.
+			continue
 		case msgUserAuthInfoRequest:
 		case msgUserAuthInfoRequest:
 			// OK
 			// OK
 		case msgUserAuthFailure:
 		case msgUserAuthFailure: