mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-06 14:02:47 -05:00
New Seat method, seat_nonfatal().
This is like the seat-independent nonfatal(), but specifies a Seat, which allows the GUI dialog box to have the right terminal window as its parent (if there are multiple ones). Changed over all the nonfatal() calls in the code base that could be localised to a Seat, which means all the ones that come up if something goes horribly wrong in host key storage. To make that possible, I've added a 'seat' parameter to store_host_key(); it turns out that all its call sites had one available already.
This commit is contained in:
@ -3529,7 +3529,8 @@ static void confirm_ssh_host_key_result_callback(void *vctx, int result)
|
||||
* doesn't care whether we saved the host key or not).
|
||||
*/
|
||||
if (result == 2) {
|
||||
store_host_key(ctx->host, ctx->port, ctx->keytype, ctx->keystr);
|
||||
store_host_key(ctx->seat, ctx->host, ctx->port,
|
||||
ctx->keytype, ctx->keystr);
|
||||
logical_result = SPR_OK;
|
||||
} else if (result == 1) {
|
||||
logical_result = SPR_OK;
|
||||
|
Reference in New Issue
Block a user