mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Use only one fingerprint formatting function.
* g10/gpg.h (MAX_FORMATTED_FINGERPRINT_LEN): New. * g10/keyid.c (hexfingerprint): Add optional args BUFFER and BUFLEN. Change all callers. (format_hexfingerprint): New. * g10/keylist.c (print_fingerprint): Change to use hexfingerprint. * g10/tofu.c (fingerprint_format): Remove. Replace calls by format_hexfingerprint. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
e7d7160ab7
commit
3689c2105a
7 changed files with 103 additions and 86 deletions
|
@ -819,7 +819,7 @@ print_status_exported (PKT_public_key *pk)
|
|||
if (!is_status_enabled ())
|
||||
return;
|
||||
|
||||
hexfpr = hexfingerprint (pk);
|
||||
hexfpr = hexfingerprint (pk, NULL, 0);
|
||||
write_status_text (STATUS_EXPORTED, hexfpr? hexfpr : "[?]");
|
||||
xfree (hexfpr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue