1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

Stop aborting the connection if Pageant won't sign.

There's been a FIXME comment in there for ages saying we should do
something less drastic than ssh_sw_abort(). This actually came up in
the course of testing Pageant's support for the new RSA validity
check, so I've fixed it: if Pageant won't deliver us a signature from
the private key we'd like, then we treat it the same as any other auth
method failure: shrug and move on to the next method on our list (or
even just the next key in Pageant).
This commit is contained in:
Simon Tatham 2019-02-10 08:51:36 +00:00
parent f133abe521
commit bc11f74c74

View File

@ -720,10 +720,10 @@ static void ssh2_userauth_process_queue(PacketProtocolLayer *ppl)
pq_push(s->ppl.out_pq, s->pktout); pq_push(s->ppl.out_pq, s->pktout);
s->type = AUTH_TYPE_PUBLICKEY; s->type = AUTH_TYPE_PUBLICKEY;
} else { } else {
/* FIXME: less drastic response */ ppl_logevent("Pageant refused signing request");
ssh_sw_abort(s->ppl.ssh, "Pageant failed to " ppl_printf("Pageant failed to "
"provide a signature"); "provide a signature\r\n");
return; s->suppress_wait_for_response_packet = true;
} }
} }
} }