aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-04-17 10:16:20 +0000
committerWerner Koch <[email protected]>2024-04-17 10:16:20 +0000
commit7d6ad2866722aaa27b33338d0fbb33c7b6b94808 (patch)
tree1f49ee3ffc3732fb7872f3a8bae6fd24422b4ba8 /g10/gpg.c
parentgpg: New command --quick-set-ownertrust. (diff)
downloadgnupg-7d6ad2866722aaa27b33338d0fbb33c7b6b94808.tar.gz
gnupg-7d6ad2866722aaa27b33338d0fbb33c7b6b94808.zip
gpg: Mark disabled keys and add show-ownertrust list option.
* g10/options.h (LIST_SHOW_OWNERTRUST): New. * g10/keylist.c (print_key_line): Show wonertrust and always show whether a key is disabled. * g10/gpg.c (parse_list_options): Add "show-ownertrust". * g10/gpgv.c (get_ownertrust_string): Add stub. * g10/test-stubs.c (get_ownertrust_string): Add stub. -- Note that in a --with-colons listing the ownertrust has always been emitted and the disabled state is marked in that listing with a special 'D' usage.
Diffstat (limited to 'g10/gpg.c')
-rw-r--r--g10/gpg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index 7cb83c443..658fb7cf1 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -2113,6 +2113,8 @@ parse_list_options(char *str)
N_("show preferences")},
{"show-pref-verbose", LIST_SHOW_PREF_VERBOSE, NULL,
N_("show preferences")},
+ {"show-ownertrust", LIST_SHOW_OWNERTRUST, NULL,
+ N_("show ownertrust")},
{"show-only-fpr-mbox",LIST_SHOW_ONLY_FPR_MBOX, NULL,
NULL},
{"sort-sigs", LIST_SORT_SIGS, NULL,