1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

winpgnt: menu options to delete/reencrypt everything.

Now the systray menu includes 'Remove All Keys' and 'Re-encrypt All
Keys' options, which do exactly what they say on the tin.
This commit is contained in:
Simon Tatham
2021-04-04 10:02:24 +01:00
parent 39a72c16cd
commit b8374f1bdf
3 changed files with 33 additions and 3 deletions

View File

@ -1408,6 +1408,19 @@ bool pageant_reencrypt_nth_ssh2_key(int i)
return reencrypt_key(pk);
}
void pageant_delete_all(void)
{
remove_all_keys(1);
remove_all_keys(2);
}
void pageant_reencrypt_all(void)
{
PageantKey *pk;
for (int i = 0; (pk = index234(keytree, i)) != NULL; i++)
reencrypt_key(pk);
}
/* ----------------------------------------------------------------------
* The agent plug.
*/