mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
76c80021d4
commit
ecbbafb88d
8 changed files with 65 additions and 22 deletions
|
@ -1906,6 +1906,9 @@ print_card_serialno (const char *serialno)
|
|||
* pub dsa2048 2007-12-31 [SC] [expires: 2018-12-31]
|
||||
* 80615870F5BAD690333686D0F2AD85AC1E42B367
|
||||
*
|
||||
* pub rsa2048 2017-12-31 [SC] [expires: 2028-12-31]
|
||||
* 80615870F5BAD690333686D0F2AD85AC1E42B3671122334455
|
||||
*
|
||||
* Some global options may result in a different output format. If
|
||||
* SECRET is set, "sec" or "ssb" is used instead of "pub" or "sub" and
|
||||
* depending on the value a flag character is shown:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue