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:
parent
a2c199affb
commit
ef2c3d50fa
3 changed files with 37 additions and 0 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue