mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
winpgnt: fix GUI removal of encrypted keys.
The GUI loop that responded to the 'Remove Key' button in the key list worked by actually trying to retrieve a pointer to the ssh_key for a stored key, and then passing that back to the delete function. But when a key is encrypted, that pointer is NULL, so we segfaulted. Fixed by changing pageant_delete_ssh2_key() to take a numeric index in the list instead of a key pointer.
This commit is contained in:
@ -125,8 +125,8 @@ int pageant_count_ssh1_keys(void);
|
||||
int pageant_count_ssh2_keys(void);
|
||||
bool pageant_add_ssh1_key(RSAKey *rkey);
|
||||
bool pageant_add_ssh2_key(ssh2_userkey *skey);
|
||||
bool pageant_delete_ssh1_key(RSAKey *rkey);
|
||||
bool pageant_delete_ssh2_key(ssh2_userkey *skey);
|
||||
bool pageant_delete_nth_ssh1_key(int i);
|
||||
bool pageant_delete_nth_ssh2_key(int i);
|
||||
|
||||
/*
|
||||
* This callback must be provided by the Pageant front end code.
|
||||
|
Reference in New Issue
Block a user