aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-06-11 06:46:37 +0000
committerWerner Koch <[email protected]>2018-06-11 06:48:21 +0000
commitd2bc66f241a66cc95140cbb3a07555f6301290ed (patch)
treee2ed94f7c7eb3fb026da22d5e5f06f5cf35d2932
parentgpg: Sanitize diagnostic with the original file name. (diff)
downloadgnupg-d2bc66f241a66cc95140cbb3a07555f6301290ed.tar.gz
gnupg-d2bc66f241a66cc95140cbb3a07555f6301290ed.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]>
-rw-r--r--doc/gpg.texi8
-rw-r--r--g10/gpg.c4
2 files changed, 9 insertions, 3 deletions
diff --git a/doc/gpg.texi b/doc/gpg.texi
index 9db23652c..5f114c519 100644
--- a/doc/gpg.texi
+++ b/doc/gpg.texi
@@ -356,9 +356,11 @@ be used to locate a key. Only public keys are listed.
@item --show-keys
@opindex show-keys
This commands takes OpenPGP keys as input and prints information about
-them in the same way the command @option{--list-keys} does for
-imported key. No internal state is changed. For automated processing
-this command should be combined with the option
+them in the same way the command @option{--list-keys} does for locally
+stored key. In addition the list options @code{show-unusable-uids},
+@code{show-unusable-subkeys}, @code{show-notations} and
+@code{show-policy-urls} are also enabled. As usual for automated
+processing, this command should be combined with the option
@option{--with-colons}.
@item --fingerprint
diff --git a/g10/gpg.c b/g10/gpg.c
index 499c00537..8effc535c 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -2650,6 +2650,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;