We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0675a89 commit a6f98b7Copy full SHA for a6f98b7
source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.c
@@ -530,11 +530,13 @@ static int8_t tls_sec_prot_lib_subject_alternative_name_validate(mbedtls_x509_cr
530
531
static int8_t tls_sec_prot_lib_extended_key_usage_validate(mbedtls_x509_crt *crt)
532
{
533
+#if defined(MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE)
534
// Extended key usage must be present
535
if (mbedtls_x509_crt_check_extended_key_usage(crt, MBEDTLS_OID_WISUN_FAN, sizeof(MBEDTLS_OID_WISUN_FAN) - 1) != 0) {
536
tr_error("invalid extended key usage");
537
return -1; // FAIL
538
}
539
+#endif
540
return 0;
541
542
0 commit comments