aboutsummaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-06-11 06:46:37 +0000
committerWerner Koch <[email protected]>2018-06-11 06:49:32 +0000
commitcbb84b3361263504dcb958208bc20177cb97cebd (patch)
tree84313f5a77a35378207f35d29b40f42675a3a903 /g10
parentgpg: Allow building with older libgpg-error. (diff)
downloadgnupg-cbb84b3361263504dcb958208bc20177cb97cebd.tar.gz
gnupg-cbb84b3361263504dcb958208bc20177cb97cebd.zip
gpg: Set some list options with --show-keys
* g10/gpg.c (main): Set some list options. -- The new command --show-keys is commonly used to check the content of a file with keys. In this case it can be expected that all included subkeys and uids are of interested, even when they are already expired or have been revoked. Signed-off-by: Werner Koch <[email protected]> (cherry picked from commit d2bc66f241a66cc95140cbb3a07555f6301290ed)
Diffstat (limited to 'g10')
-rw-r--r--g10/gpg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index b76a039cc..c117de375 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -2610,6 +2610,10 @@ main (int argc, char **argv)
opt.import_options |= IMPORT_SHOW;
opt.import_options |= IMPORT_DRY_RUN;
opt.import_options &= ~IMPORT_REPAIR_KEYS;
+ opt.list_options |= LIST_SHOW_UNUSABLE_UIDS;
+ opt.list_options |= LIST_SHOW_UNUSABLE_SUBKEYS;
+ opt.list_options |= LIST_SHOW_NOTATIONS;
+ opt.list_options |= LIST_SHOW_POLICY_URLS;
break;
case aDetachedSign: detached_sig = 1; set_cmd( &cmd, aSign ); break;