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

@ -63,5 +63,6 @@ int keyedit_print_one_sig (ctrl_t ctrl, estream_t fp,
kbnode_t node, int *inv_sigs, int *no_key,
int *oth_err, int is_selfsig,
int print_without_key, int extended);
void no_usable_encr_subkeys_warning (kbnode_t keyblock);
#endif /* GNUPG_G10_KEYEDIT_H */