check for critical policy extension when not supported

This commit is contained in:
JacobBarthelmeh
2024-04-02 16:46:47 -06:00
parent 04ebc966d0
commit 983616afa0

View File

@@ -21072,7 +21072,13 @@ static int DecodeExtensionType(const byte* input, word32 length, word32 oid,
ret = ASN_PARSE_E; ret = ASN_PARSE_E;
} }
#else #else
WOLFSSL_MSG("Certificate Policy extension not supported yet."); WOLFSSL_MSG("Certificate Policy extension not supported.");
#ifndef WOLFSSL_NO_ASN_STRICT
if (critical) {
WOLFSSL_ERROR_VERBOSE(ASN_CRIT_EXT_E);
ret = ASN_CRIT_EXT_E;
}
#endif
#endif #endif
break; break;