summaryrefslogtreecommitdiffstats
path: root/g10/keyedit.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2023-05-08 13:10:47 +0200
committerWerner Koch <wk@gnupg.org>2023-05-08 13:10:47 +0200
commitef2c3d50fa8cbc2413645a56d9d060c0ec31e62f (patch)
tree7d71b53294739b6880d8a86cc11b8fdb07cb3e2c /g10/keyedit.h
parentkbx: For non-Windows use 64k buffers by default instead of 128k. (diff)
downloadgnupg2-ef2c3d50fa8cbc2413645a56d9d060c0ec31e62f.tar.xz
gnupg2-ef2c3d50fa8cbc2413645a56d9d060c0ec31e62f.zip
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. --
Diffstat (limited to 'g10/keyedit.h')
-rw-r--r--g10/keyedit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/keyedit.h b/g10/keyedit.h
index 3ed0d0fea..abf7314af 100644
--- a/g10/keyedit.h
+++ b/g10/keyedit.h
@@ -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 */