From c0f49b57e1d8f593c46c825d91f9be9846fd3bb4 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 13 Jun 2022 16:31:19 -0700 Subject: [PATCH] Fix for ASN template parsing of `DecodeExtKeyUsage`. ZD 14344. --- wolfcrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 384888f86..7fa7e7cb5 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -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);