From: Simon Tatham Date: Tue, 15 Jun 2004 09:50:05 +0000 (+0000) Subject: `Authenticating with key' message when using a local key file in X-Git-Tag: 0.55~28 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=78dbf5df0e7cda6ef91a0e00f004cd47a2cda595;p=PuTTY.git `Authenticating with key' message when using a local key file in SSH2 was not contained within a test for FLAG_VERBOSE. Thanks to Paul Gotch for pointing this out. [originally from svn r4281] --- diff --git a/ssh.c b/ssh.c index 1078af0f..dec48ce8 100644 --- 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; } }