gpg: Use only one fingerprint formatting function.
authorWerner Koch <wk@gnupg.org>
Sat, 14 Nov 2015 08:13:02 +0000 (09:13 +0100)
committerWerner Koch <wk@gnupg.org>
Sat, 14 Nov 2015 08:13:02 +0000 (09:13 +0100)
commit3689c2105aab6a4304e9464c5b20207d69b9a133
tree9b6b205a05ed03edfe72f89983e55cf52d7222fc
parente7d7160ab7cd4e6b460bfe36fd3a7275adadb4e2
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>
g10/export.c
g10/gpg.h
g10/keydb.h
g10/keyid.c
g10/keylist.c
g10/revoke.c
g10/tofu.c