mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Make the check of the certificate extension critical flag optional based on compile option.
This commit is contained in:
@ -7000,13 +7000,15 @@ static int DecodeCertExtensions(DecodedCert* cert)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
#ifndef WOLFSSL_NO_ASN_STRICT
|
||||||
/* While it is a failure to not support critical extensions,
|
/* While it is a failure to not support critical extensions,
|
||||||
* still parse the certificate ignoring the unsupported
|
* still parse the certificate ignoring the unsupported
|
||||||
* extension to allow caller to accept it with the verify
|
* extension to allow caller to accept it with the verify
|
||||||
* callback. */
|
* callback. */
|
||||||
if (critical)
|
if (critical)
|
||||||
criticalFail = 1;
|
criticalFail = 1;
|
||||||
break;
|
#endif
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
idx += length;
|
idx += length;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user