Skip to content

Commit

Permalink
fix(mbedtls): remove deprecated MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITIC…
Browse files Browse the repository at this point in the history
…AL_EXTENSION

This config has been removed in the upstream mbedTLS starting 3.0
release. Please see mbedTLS changelog for more details.
  • Loading branch information
mahavirj authored and espressif-bot committed Oct 17, 2023
1 parent bf59005 commit 82d2cdc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
12 changes: 0 additions & 12 deletions components/mbedtls/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1052,16 +1052,4 @@ menu "mbedTLS"
then the ESP will be unable to process keys greater
than SOC_RSA_MAX_BIT_LEN.

menuconfig MBEDTLS_SECURITY_RISKS
bool "Show configurations with potential security risks"
default n

config MBEDTLS_ALLOW_UNSUPPORTED_CRITICAL_EXT
bool "X.509 CRT parsing with unsupported critical extensions"
depends on MBEDTLS_SECURITY_RISKS
default n
help
Allow the X.509 certificate parser to load certificates
with unsupported critical extensions

endmenu # mbedTLS
19 changes: 0 additions & 19 deletions components/mbedtls/port/include/mbedtls/esp_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -2738,25 +2738,6 @@
*/
#define MBEDTLS_X509_CRT_WRITE_C

/**
* \def MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
*
* Alow the X509 parser to not break-off when parsing an X509 certificate
* and encountering an unknown critical extension.
*
* Module: library/x509_crt.c
*
* Requires: MBEDTLS_X509_CRT_PARSE_C
*
* This module is supports loading of certificates with extensions that
* may not be supported by mbedtls.
*/
#ifdef CONFIG_MBEDTLS_ALLOW_UNSUPPORTED_CRITICAL_EXT
#define MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
#else
#undef MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
#endif

/**
* \def MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK
*
Expand Down

0 comments on commit 82d2cdc

Please sign in to comment.