From 1d1cb86694fb2223de1da0b3bfffb5c62f505847 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 6 Jun 2016 16:55:03 +0200 Subject: 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 --- doc/gpg.texi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/gpg.texi b/doc/gpg.texi index f19058146..f092b270d 100644 --- a/doc/gpg.texi +++ b/doc/gpg.texi @@ -342,7 +342,8 @@ fingerprints. This is the same output as @option{--list-keys} but with the additional output of a line with the fingerprint. May also be combined with @option{--list-sigs} or @option{--check-sigs}. If this command is given twice, the fingerprints of all secondary keys are -listed too. +listed too. This command also forces pretty printing of fingerprints +if the keyid format has been set to "none". @item --list-packets @opindex list-packets @@ -2276,6 +2277,14 @@ allow to convey suitable information for elliptic curves. Same as the command @option{--fingerprint} but changes only the format of the output and may be used together with another command. +@item --with-subkey-fingerprint +@opindex with-subkey-fingerprint +If a fingerprint is printed for the primary key, this option forces +printing of the fingerprint for all subkeys. This could also be +achieved by using the @option{--with-fingerprint} twice but by using +this option along with keyid-format "none" a compact fingerprint is +printed. + @item --with-icao-spelling @opindex with-icao-spelling Print the ICAO spelling of the fingerprint in addition to the hex digits. -- cgit v1.2.3