Skip to content

Commit

Permalink
Stop stripping out the sequence header on the AltSigAlg extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
anhu committed Jul 3, 2024
1 parent ba1eedb commit f5e27bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wolfcrypt/src/asn.c
Original file line number Diff line number Diff line change
Expand Up @@ -20983,6 +20983,7 @@ static int DecodeAltSigAlg(const byte* input, int sz, DecodedCert* cert)
(void)cert;
}

/* We do this to make sure the format of the extension is correct. */
if (ret == 0) {
GetASN_OID(&dataASN[ALTSIG_ALGOID_OID], oidSigType);

Expand All @@ -20992,8 +20993,8 @@ static int DecodeAltSigAlg(const byte* input, int sz, DecodedCert* cert)
}

if (ret == 0) {
cert->altSigAlgDer = dataASN[ALTSIG_ALGOID_SEQ].data.u8;
cert->altSigAlgLen = dataASN[ALTSIG_ALGOID_SEQ].length;
cert->altSigAlgDer = (byte *)input;
cert->altSigAlgLen = sz;
cert->altSigAlgOID = dataASN[ALTSIG_ALGOID_OID].data.oid.sum;
}

Expand Down

0 comments on commit f5e27bf

Please sign in to comment.