From c2b8bdc1bbf8b512dbed868c945b8ce7f0379508 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 15 Jun 2004 09:50:05 +0000 Subject: [PATCH] `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. git-svn-id: http://svn.tartarus.org/sgt/putty@4281 cda61777-01e9-0310-a592-d414129be87e --- ssh.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; } } -- 2.45.2