浏览代码

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

R=agl, golang-dev
CC=golang-dev
https://golang.org/cl/12983046
JP Sugarbroad 13 年之前
父节点
当前提交
504f1d5525
共有 1 个文件被更改,包括 3 次插入0 次删除
  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: