Fix for ASN template parsing of DecodeExtKeyUsage. ZD 14344.

This commit is contained in:
David Garske
2022-06-13 16:31:19 -07:00
parent af3a55a94c
commit c0f49b57e1

View File

@ -16034,7 +16034,7 @@ static int DecodeExtKeyUsage(const byte* input, int sz, DecodedCert* cert)
/* Clear dynamic data items and set OID type expected. */
XMEMSET(dataASN, 0, sizeof(dataASN));
GetASN_OID(&dataASN[KEYPURPOSEIDASN_IDX_OID], oidCertKeyUseType);
GetASN_OID(&dataASN[KEYPURPOSEIDASN_IDX_OID], oidIgnoreType);
/* Decode KeyPurposeId. */
ret = GetASN_Items(keyPurposeIdASN, dataASN, keyPurposeIdASN_Length, 0,
input, &idx, sz);