diff options
Diffstat (limited to 'g10/keylist.c')
-rw-r--r-- | g10/keylist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/keylist.c b/g10/keylist.c index cc26b0bc3..cca574ef9 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -940,6 +940,7 @@ list_keyblock( KBNODE keyblock, int secret, int fpr, void *opaque ) * mode 0: as used in key listings, opt.with_colons is honored * 1: print using log_info () * 2: direct use of tty + * 3: direct use of tty but only primary key. * modes 1 and 2 will try and print both subkey and primary key fingerprints */ void @@ -1005,6 +1006,10 @@ print_fingerprint (PKT_public_key *pk, PKT_secret_key *sk, int mode ) else text = _(" Subkey fingerprint:"); } + else if (mode == 3) { + fp = NULL; /* use tty */ + text = _(" Key fingerprint ="); + } else { fp = stdout; text = _(" Key fingerprint ="); |