Skip to content

Commit

Permalink
Merge pull request wolfSSL#7742 from embhorn/zd18240
Browse files Browse the repository at this point in the history
Fix ParseCRL_AuthKeyIdExt setting extAuthKeyIdSet
  • Loading branch information
SparkiDev authored Jul 15, 2024
2 parents f2f3a82 + d6731f0 commit e002b6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wolfcrypt/src/asn.c
Original file line number Diff line number Diff line change
Expand Up @@ -38074,6 +38074,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));
Expand All @@ -38099,6 +38100,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,
Expand Down

0 comments on commit e002b6e

Please sign in to comment.