aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keylist.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2002-08-19 08:28:00 +0000
committerWerner Koch <[email protected]>2002-08-19 08:28:00 +0000
commit89f8e7ef36cdb8bab9f239f49efc70f49a050ce5 (patch)
tree82df2556872bb28040ec2bec958bd0abf4659b88 /g10/keylist.c
parent2002-08-16 Timo Schulz <[email protected]> (diff)
downloadgnupg-89f8e7ef36cdb8bab9f239f49efc70f49a050ce5.tar.gz
gnupg-89f8e7ef36cdb8bab9f239f49efc70f49a050ce5.zip
* getkey.c (get_user_id_native): Renamed to ..
(get_user_id_printable): this. Filter out all dangerous characters. Checked all usages. (get_user_id_string_native): Renamed to.. (get_user_id_string_printable): this. Filter out all dangerous characters. Checked all usages. * keyedit.c (show_basic_key_info): New. * keylist.c (print_fingerprint): New mode 3. * import.c (import_one): Use new function to display the user ID.
Diffstat (limited to 'g10/keylist.c')
-rw-r--r--g10/keylist.c5
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 =");