1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-07 23:27:48 +02:00

Allow issuer fpr in unhashed area.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-04-12 15:56:47 +09:00
parent e561cb1ae0
commit 13e6ec6672

View File

@ -2311,6 +2311,8 @@ parse_signature (IOBUF inp, int pkttype, unsigned long pktlen,
* it is a v4 signature the fallback to the issuer. Note that
* only the issuer packet is also searched in the unhashed area. */
p = parse_sig_subpkt (sig, 1, SIGSUBPKT_ISSUER_FPR, &len);
if (!p && sig->version == 5)
p = parse_sig_subpkt (sig, 0, SIGSUBPKT_ISSUER_FPR, &len);
if (p && len == 21 && p[0] == 4)
{
sig->keyid[0] = buf32_to_u32 (p + 1 + 12);