From: ben Date: Sat, 30 Apr 2005 16:13:11 +0000 (+0000) Subject: X11 authentication data are generally sensitive, so blank them from packet X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/178c387223509d6f1c9887acfcee93df9f90d690 X11 authentication data are generally sensitive, so blank them from packet logs by default. git-svn-id: svn://svn.tartarus.org/sgt/putty@5719 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ssh.c b/ssh.c index d20b1305..6fe865b7 100644 --- a/ssh.c +++ b/ssh.c @@ -7314,7 +7314,9 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen, ssh2_pkt_addbool(s->pktout, 1); /* want reply */ ssh2_pkt_addbool(s->pktout, 0); /* many connections */ ssh2_pkt_addstring(s->pktout, proto); + dont_log_password(ssh, s->pktout, PKTLOG_BLANK); ssh2_pkt_addstring(s->pktout, data); + end_log_omission(ssh, s->pktout); ssh2_pkt_adduint32(s->pktout, x11_get_screen_number(ssh->cfg.x11_display)); ssh2_pkt_send(ssh, s->pktout);