1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-18 03:20:59 -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:
Simon Tatham
2022-09-13 08:49:38 +01:00
parent c674b2da4f
commit 4249b39ed3
24 changed files with 104 additions and 19 deletions

View File

@ -89,8 +89,10 @@ int check_stored_host_key(const char *hostname, int port,
/*
* Write a host key into the database, overwriting any previous
* entry that might have been there.
*
* A Seat is provided for error-reporting purposes.
*/
void store_host_key(const char *hostname, int port,
void store_host_key(Seat *seat, const char *hostname, int port,
const char *keytype, const char *key);
/* ----------------------------------------------------------------------