aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-11-04 11:44:09 +0000
committerWerner Koch <[email protected]>2022-11-04 11:44:09 +0000
commit811cfa34cb3e7166f0cf1f94565504dee21cd9f5 (patch)
tree046552dfa32978b95572966d91387f80034ef5c2 /g10/gpg.c
parenttests: Add tests to check that OCB is only used for capable keys. (diff)
downloadgnupg-811cfa34cb3e7166f0cf1f94565504dee21cd9f5.tar.gz
gnupg-811cfa34cb3e7166f0cf1f94565504dee21cd9f5.zip
gpg: New list-options show-pref and show-pref-verbose.
* g10/options.h (LIST_SHOW_PREF): New. (LIST_SHOW_PREF_VERBOSE): New. * g10/gpg.c (parse_list_options): Add new options. * g10/keyedit.c (show_prefs): Factor code out to ... * g10/keylist.c (show_preferences): new. (list_keyblock_print): Call show_preferences.
Diffstat (limited to 'g10/gpg.c')
-rw-r--r--g10/gpg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index 932a4e0f0..37533bce5 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -2070,6 +2070,10 @@ parse_list_options(char *str)
N_("show the keyring name in key listings")},
{"show-sig-expire",LIST_SHOW_SIG_EXPIRE,NULL,
N_("show expiration dates during signature listings")},
+ {"show-pref", LIST_SHOW_PREF, NULL,
+ N_("show preferences")},
+ {"show-pref-verbose", LIST_SHOW_PREF_VERBOSE, NULL,
+ N_("show preferences")},
{"show-sig-subpackets",LIST_SHOW_SIG_SUBPACKETS,NULL,
NULL},
{"show-only-fpr-mbox",LIST_SHOW_ONLY_FPR_MBOX, NULL,