mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
Fix for ASN template parsing of DecodeExtKeyUsage
. ZD 14344.
This commit is contained in:
@ -16034,7 +16034,7 @@ static int DecodeExtKeyUsage(const byte* input, int sz, DecodedCert* cert)
|
|||||||
|
|
||||||
/* Clear dynamic data items and set OID type expected. */
|
/* Clear dynamic data items and set OID type expected. */
|
||||||
XMEMSET(dataASN, 0, sizeof(dataASN));
|
XMEMSET(dataASN, 0, sizeof(dataASN));
|
||||||
GetASN_OID(&dataASN[KEYPURPOSEIDASN_IDX_OID], oidCertKeyUseType);
|
GetASN_OID(&dataASN[KEYPURPOSEIDASN_IDX_OID], oidIgnoreType);
|
||||||
/* Decode KeyPurposeId. */
|
/* Decode KeyPurposeId. */
|
||||||
ret = GetASN_Items(keyPurposeIdASN, dataASN, keyPurposeIdASN_Length, 0,
|
ret = GetASN_Items(keyPurposeIdASN, dataASN, keyPurposeIdASN_Length, 0,
|
||||||
input, &idx, sz);
|
input, &idx, sz);
|
||||||
|
Reference in New Issue
Block a user