aboutsummaryrefslogtreecommitdiffstats
path: root/g10/revoke.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-11-14 08:13:02 +0000
committerWerner Koch <[email protected]>2015-11-14 08:13:02 +0000
commit3689c2105aab6a4304e9464c5b20207d69b9a133 (patch)
tree9b6b205a05ed03edfe72f89983e55cf52d7222fc /g10/revoke.c
parentgpg: Simplify the tofu interface by using the public key packet. (diff)
downloadgnupg-3689c2105aab6a4304e9464c5b20207d69b9a133.tar.gz
gnupg-3689c2105aab6a4304e9464c5b20207d69b9a133.zip
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 <[email protected]>
Diffstat (limited to 'g10/revoke.c')
-rw-r--r--g10/revoke.c2
1 files changed, 1 insertions, 1 deletions
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);