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/revoke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g10/revoke.c') diff --git a/g10/revoke.c b/g10/revoke.c index 7ff50be2a..460f346b7 100644 --- a/g10/revoke.c +++ b/g10/revoke.c @@ -530,7 +530,7 @@ gen_standard_revoke (PKT_public_key *psk, const char *cache_nonce) char *orig_codeset; dir = get_openpgp_revocdir (opt.homedir); - tmpstr = hexfingerprint (psk); + tmpstr = hexfingerprint (psk, NULL, 0); fname = xstrconcat (dir, DIRSEP_S, tmpstr, NULL); xfree (tmpstr); xfree (dir); -- cgit v1.2.3