From d6731f0f84714479687f0cdcb796c0e176c879da Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Thu, 11 Jul 2024 15:59:11 -0500 Subject: [PATCH] Fix ParseCRL_AuthKeyIdExt setting extAuthKeyIdSet --- wolfcrypt/src/asn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 6a557b069..cc5d5a2bd 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -38073,6 +38073,7 @@ static int ParseCRL_AuthKeyIdExt(const byte* input, int sz, DecodedCRL* dcrl) } dcrl->extAuthKeyIdSet = 1; + /* Get the hash or hash of the hash if wrong size. */ ret = GetHashId(input + idx, length, dcrl->extAuthKeyId, HashIdAlg(dcrl->signatureOID)); @@ -38098,6 +38099,8 @@ static int ParseCRL_AuthKeyIdExt(const byte* input, int sz, DecodedCRL* dcrl) WOLFSSL_MSG("\tinfo: OPTIONAL item 0, not available"); } else { + dcrl->extAuthKeyIdSet = 1; + /* Get the hash or hash of the hash if wrong size. */ ret = GetHashId(dataASN[AUTHKEYIDASN_IDX_KEYID].data.ref.data, (int)dataASN[AUTHKEYIDASN_IDX_KEYID].data.ref.length,