Explorar el Código

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

R=agl, golang-dev
CC=golang-dev
https://golang.org/cl/12983046
JP Sugarbroad hace 12 años
padre
commit
504f1d5525
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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.
 		switch packet[0] {
+		case msgUserAuthBanner:
+			// TODO: Print banners during userauth.
+			continue
 		case msgUserAuthInfoRequest:
 			// OK
 		case msgUserAuthFailure: