aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyid.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-06-06 14:55:03 +0000
committerWerner Koch <[email protected]>2016-06-06 14:56:18 +0000
commit1d1cb86694fb2223de1da0b3bfffb5c62f505847 (patch)
treec8f2878ce92e526f4cf6b6a3a2d2bb40386a5d60 /g10/keyid.c
parentgpg: Implement --keyid-format=none. (diff)
downloadgnupg-1d1cb86694fb2223de1da0b3bfffb5c62f505847.tar.gz
gnupg-1d1cb86694fb2223de1da0b3bfffb5c62f505847.zip
gpg: Add option --with-subkey-fingerprint.
* g10/gpg.c (oWithSubkeyFingerprint): New. (opts): Add --with-subkey-fingerprint[s]. (main): Set that option. * g10/options.h (struct opt): Add 'with_subkey_fingerprint'. * g10/keylist.c (list_keyblock_print): Print subkey fingerprint. (print_fingerprint): Tweak printing to use compact format if desirable. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/keyid.c')
-rw-r--r--g10/keyid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/keyid.c b/g10/keyid.c
index 20efa01b7..4cdc41d2a 100644
--- a/g10/keyid.c
+++ b/g10/keyid.c
@@ -384,6 +384,9 @@ keystrlen(void)
switch(format)
{
+ case KF_NONE:
+ return 0;
+
case KF_SHORT:
return 8;