mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
b047388d57
commit
1d1cb86694
5 changed files with 37 additions and 5 deletions
|
@ -182,6 +182,7 @@ enum cmd_and_opt_values
|
|||
oNoAskCertLevel,
|
||||
oFingerprint,
|
||||
oWithFingerprint,
|
||||
oWithSubkeyFingerprint,
|
||||
oWithICAOSpelling,
|
||||
oWithKeygrip,
|
||||
oWithSecret,
|
||||
|
@ -720,6 +721,8 @@ static ARGPARSE_OPTS opts[] = {
|
|||
ARGPARSE_s_n (oUtf8Strings, "utf8-strings", "@"),
|
||||
ARGPARSE_s_n (oNoUtf8Strings, "no-utf8-strings", "@"),
|
||||
ARGPARSE_s_n (oWithFingerprint, "with-fingerprint", "@"),
|
||||
ARGPARSE_s_n (oWithSubkeyFingerprint, "with-subkey-fingerprint", "@"),
|
||||
ARGPARSE_s_n (oWithSubkeyFingerprint, "with-subkey-fingerprints", "@"),
|
||||
ARGPARSE_s_n (oWithICAOSpelling, "with-icao-spelling", "@"),
|
||||
ARGPARSE_s_n (oWithKeygrip, "with-keygrip", "@"),
|
||||
ARGPARSE_s_n (oWithSecret, "with-secret", "@"),
|
||||
|
@ -2566,6 +2569,9 @@ main (int argc, char **argv)
|
|||
opt.with_fingerprint = 1;
|
||||
opt.fingerprint++;
|
||||
break;
|
||||
case oWithSubkeyFingerprint:
|
||||
opt.with_subkey_fingerprint = 1;
|
||||
break;
|
||||
case oWithICAOSpelling:
|
||||
opt.with_icao_spelling = 1;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue