mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Merge pull request #7388 from JacobBarthelmeh/x509_cases
check for critical policy extension when not supported
This commit is contained in:
@ -21121,7 +21121,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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user