From 3689c2105aab6a4304e9464c5b20207d69b9a133 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Sat, 14 Nov 2015 09:13:02 +0100 Subject: 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 --- g10/export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g10/export.c') diff --git a/g10/export.c b/g10/export.c index b9272515f..3c2aa5745 100644 --- a/g10/export.c +++ b/g10/export.c @@ -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); } -- cgit v1.2.3