1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

gpg: Print a warning if no more encryption subkey was left over.

* g10/keyedit.c (no_usable_encr_subkeys_warning): New.
(keyedit_menu): Call it after running an expire command.
* g10/import.c (import_one_real): Call it in the show_key case.
--
This commit is contained in:
Werner Koch 2023-05-08 13:10:47 +02:00
parent a2c199affb
commit ef2c3d50fa
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
3 changed files with 37 additions and 0 deletions

View file

@ -2136,6 +2136,7 @@ import_one_real (ctrl_t ctrl,
list_keyblock_direct (ctrl, keyblock, from_sk, 0,
opt.fingerprint || opt.with_fingerprint, 1);
es_fflush (es_stdout);
no_usable_encr_subkeys_warning (keyblock);
}
/* Write the keyblock to the output and do not actually import. */