gpg: Prepare for a longer fingerprint
authorWerner Koch <wk@gnupg.org>
Wed, 27 Sep 2017 07:42:13 +0000 (09:42 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 27 Sep 2017 07:42:13 +0000 (09:42 +0200)
commitecbbafb88d920e713439b6b1b8e1b41a6f8d0e38
tree31bedb79a01bb220c3079e592b20ad4cb1211dd0
parent76c80021d4da0755dbb04bd5d42f32015cba0b9a
gpg: Prepare for a longer fingerprint

* g10/card-util.c (change_cafpr): Use MAX_FINGERPRINT_LEN.
* g10/cipher.c (write_header): Use snprintf.
* g10/gpg.h (MAX_FINGERPRINT_LEN): Change to 32.
(MAX_FORMATTED_FINGERPRINT_LEN): Change to 59
* g10/keyid.c (format_hexfingerprint): Add v5 fingerprint format.
* g10/tofu.c (get_policy): Use MAX_FINGERPRINT_LEN for the buffer but
keep the raw length for now.
--

Note that this patch only increases the size of the buffer and adds a
new formatting for v5 fingerprints.  Moe work is required to fix
internal data structures like those in trustdb.gpg and the tofu
tables.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/card-util.c
g10/cipher.c
g10/gpg.h
g10/keyid.c
g10/keylist.c
g10/sig-check.c
g10/tdbdump.c
g10/tofu.c