1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

winpgnt: add GUI button to re-encrypt an SSH-2 key.

This commit is contained in:
Simon Tatham
2021-04-04 09:42:00 +01:00
parent 9e3d78bddb
commit f5df09adb7
6 changed files with 48 additions and 19 deletions

View File

@ -1400,6 +1400,14 @@ bool pageant_delete_nth_ssh2_key(int i)
return true;
}
bool pageant_reencrypt_nth_ssh2_key(int i)
{
PageantKey *pk = index234(keytree, find_first_key_for_version(2) + i);
if (!pk)
return false;
return reencrypt_key(pk);
}
/* ----------------------------------------------------------------------
* The agent plug.
*/