]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
`Authenticating with key' message when using a local key file in
authorSimon Tatham <anakin@pobox.com>
Tue, 15 Jun 2004 09:50:05 +0000 (09:50 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 15 Jun 2004 09:50:05 +0000 (09:50 +0000)
SSH2 was not contained within a test for FLAG_VERBOSE. Thanks to
Paul Gotch for pointing this out.

[originally from svn r4281]

ssh.c

diff --git a/ssh.c b/ssh.c
index 1078af0fec1966a540c0ec57db689823e4573c2c..dec48ce80d620e06525489b0f0ab73084e95c0f7 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -4992,9 +4992,11 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen, int ispkt)
                    } else {
                        s->need_pw = FALSE;
                    }
-                   c_write_str(ssh, "Authenticating with public key \"");
-                   c_write_str(ssh, comment);
-                   c_write_str(ssh, "\"\r\n");
+                   if (flags & FLAG_VERBOSE) {
+                       c_write_str(ssh, "Authenticating with public key \"");
+                       c_write_str(ssh, comment);
+                       c_write_str(ssh, "\"\r\n");
+                   }
                    s->method = AUTH_PUBLICKEY_FILE;
                }
            }