Merge pull request #7742 from embhorn/zd18240

Fix ParseCRL_AuthKeyIdExt setting extAuthKeyIdSet
This commit is contained in:
Sean Parkinson
2024-07-16 09:38:54 +10:00
committed by GitHub

View File

@ -38074,6 +38074,7 @@ static int ParseCRL_AuthKeyIdExt(const byte* input, int sz, DecodedCRL* dcrl)
} }
dcrl->extAuthKeyIdSet = 1; dcrl->extAuthKeyIdSet = 1;
/* Get the hash or hash of the hash if wrong size. */ /* Get the hash or hash of the hash if wrong size. */
ret = GetHashId(input + idx, length, dcrl->extAuthKeyId, ret = GetHashId(input + idx, length, dcrl->extAuthKeyId,
HashIdAlg(dcrl->signatureOID)); HashIdAlg(dcrl->signatureOID));
@ -38099,6 +38100,8 @@ static int ParseCRL_AuthKeyIdExt(const byte* input, int sz, DecodedCRL* dcrl)
WOLFSSL_MSG("\tinfo: OPTIONAL item 0, not available"); WOLFSSL_MSG("\tinfo: OPTIONAL item 0, not available");
} }
else { else {
dcrl->extAuthKeyIdSet = 1;
/* Get the hash or hash of the hash if wrong size. */ /* Get the hash or hash of the hash if wrong size. */
ret = GetHashId(dataASN[AUTHKEYIDASN_IDX_KEYID].data.ref.data, ret = GetHashId(dataASN[AUTHKEYIDASN_IDX_KEYID].data.ref.data,
(int)dataASN[AUTHKEYIDASN_IDX_KEYID].data.ref.length, (int)dataASN[AUTHKEYIDASN_IDX_KEYID].data.ref.length,