aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keydb.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-09-04 14:34:55 +0000
committerWerner Koch <[email protected]>2023-09-04 14:36:51 +0000
commit1f76cbca35133969ccccfa324d633556e19a386c (patch)
tree5475d0fc7ab2801f3a761f59d84ad891d6c12054 /g10/keydb.h
parentgpgsm: Add --always-trust feature. (diff)
downloadgnupg-1f76cbca35133969ccccfa324d633556e19a386c.tar.gz
gnupg-1f76cbca35133969ccccfa324d633556e19a386c.zip
gpg: Add option --with-v5-fingerprint
* g10/gpg.c (oWithV5Fingerprint): New. (opts): Add new option. (main): Set option. * g10/options.h (opt): Add with_v5_fingerprint. * g10/keyid.c (hash_public_key): Factor out to ... (do_hash_public_key): this. Add new arg to foce v5 style hashing. (v5_fingerprint_from_pk): New. (v5hexfingerprint): New. * g10/keylist.c (print_fingerprint): Print v5 fingerprint for v4 keys if the option is set. -- GnuPG-bug-id: 6705
Diffstat (limited to 'g10/keydb.h')
-rw-r--r--g10/keydb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/keydb.h b/g10/keydb.h
index 1a66d664e..b18f6e93a 100644
--- a/g10/keydb.h
+++ b/g10/keydb.h
@@ -570,8 +570,10 @@ const char *colon_datestr_from_pk (PKT_public_key *pk);
const char *colon_datestr_from_sig (PKT_signature *sig);
const char *colon_expirestr_from_sig (PKT_signature *sig);
byte *fingerprint_from_pk( PKT_public_key *pk, byte *buf, size_t *ret_len );
+byte *v5_fingerprint_from_pk (PKT_public_key *pk, byte *array, size_t *ret_len);
void fpr20_from_pk (PKT_public_key *pk, byte array[20]);
char *hexfingerprint (PKT_public_key *pk, char *buffer, size_t buflen);
+char *v5hexfingerprint (PKT_public_key *pk, char *buffer, size_t buflen);
char *format_hexfingerprint (const char *fingerprint,
char *buffer, size_t buflen);
gpg_error_t keygrip_from_pk (PKT_public_key *pk, unsigned char *array);