mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
kbx: Fix short KID and long KID handling for FPR32.
* kbx/keybox-search.c (blob_cmp_fpr_part): For FPR32, it's the first part in the fingerprint. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
daa2cec6a5
commit
fa4a2bd7a1
@ -313,7 +313,7 @@ blob_cmp_fpr_part (KEYBOXBLOB blob, const unsigned char *fpr,
|
||||
storedfprlen = (get16 (buffer + off + 32) & 0x80)? 32:20;
|
||||
else
|
||||
storedfprlen = 20;
|
||||
if (storedfprlen == fproff + fprlen
|
||||
if ((fpr32 || storedfprlen == fproff + fprlen)
|
||||
&& !memcmp (buffer + off + fproff, fpr, fprlen))
|
||||
return idx+1; /* found */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user