瀏覽代碼

Logging authentication methods offered by the SSH server

Source commit: 6a15cd9be5222c4a734a262b18a136488f293d81
Martin Prikryl 9 年之前
父節點
當前提交
19a661e2bd
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      source/putty/ssh.c

+ 3 - 0
source/putty/ssh.c

@@ -9634,6 +9634,9 @@ static void do_ssh2_authconn(Ssh ssh, const unsigned char *in, int inlen,
 		    logevent("Further authentication required");
 		}
 
+#ifdef MPEXT	
+		logeventf(ssh, "Server offered these authentication methods: %s", methods);
+#endif
 		s->can_pubkey =
 		    in_commasep_string("publickey", methods, methlen);
 		s->can_passwd =