mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* 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.
This commit is contained in:
parent
5201d1ec9d
commit
89f8e7ef36
11 changed files with 120 additions and 38 deletions
|
@ -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 =");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue