summaryrefslogtreecommitdiffstats
path: root/g10/keyid.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2023-09-05 08:08:54 +0200
committerWerner Koch <wk@gnupg.org>2023-09-05 08:08:54 +0200
commit362a6dfb0a42c41604f173f24ac0f14b03165c6f (patch)
treeeb7c931ca533bbb60d87d4c4b42bccafec6afdc8 /g10/keyid.c
parentgpg: Add option --with-v5-fingerprint (diff)
downloadgnupg2-362a6dfb0a42c41604f173f24ac0f14b03165c6f.tar.xz
gnupg2-362a6dfb0a42c41604f173f24ac0f14b03165c6f.zip
gpg: Fix last commit.
* g10/keyid.c (hash_public_key): Do not pass the version. -- Fixes-commit: 1f76cbca35133969ccccfa324d633556e19a386c
Diffstat (limited to 'g10/keyid.c')
-rw-r--r--g10/keyid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/keyid.c b/g10/keyid.c
index b80ee320e..4a041ce0e 100644
--- a/g10/keyid.c
+++ b/g10/keyid.c
@@ -287,7 +287,7 @@ do_hash_public_key (gcry_md_hd_t md, PKT_public_key *pk, int use_v5)
void
hash_public_key (gcry_md_hd_t md, PKT_public_key *pk)
{
- do_hash_public_key (md, pk, pk->version);
+ do_hash_public_key (md, pk, (pk->version == 5));
}