mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 20:54:24 +00:00
fix(mbedtls): Fix https_request example build failure for mbedtls_config
- This was caused due to some mbedtls confisg being defined but their all prerequisites were not
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
/**
|
||||
* \def MBEDTLS_PLATFORM_MS_TIME_ALT
|
||||
*
|
||||
* Define platform specific function to get time since bootup in milliseconds.
|
||||
* Define platform specific function to get time since boot up in milliseconds.
|
||||
*/
|
||||
#define MBEDTLS_PLATFORM_MS_TIME_ALT
|
||||
#else
|
||||
@@ -412,6 +412,14 @@
|
||||
*/
|
||||
#ifdef CONFIG_MBEDTLS_CMAC_C
|
||||
#define MBEDTLS_CMAC_C
|
||||
#else
|
||||
#ifdef CONFIG_MBEDTLS_USE_CRYPTO_ROM_IMPL
|
||||
/* The mbedtls present in ROM is built with the MBEDTLS_CMAC_C symbol being enabled,
|
||||
* thus when using the mbedtls from ROM, CONFIG_MBEDTLS_CMAC_C needs to be enabled.
|
||||
*/
|
||||
#error "CONFIG_MBEDTLS_CMAC_C cannot be disabled when CONFIG_MBEDTLS_USE_CRYPTO_ROM_IMPL is enabled"
|
||||
#endif
|
||||
#undef MBEDTLS_CMAC_C
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -841,7 +849,28 @@
|
||||
*
|
||||
* Disable if you only need to support RFC 5915 + 5480 key formats.
|
||||
*/
|
||||
#ifdef CONFIG_MBEDTLS_PK_PARSE_EC_EXTENDED
|
||||
#define MBEDTLS_PK_PARSE_EC_EXTENDED
|
||||
#else
|
||||
#undef MBEDTLS_PK_PARSE_EC_EXTENDED
|
||||
#endif
|
||||
|
||||
/**
|
||||
* \def MBEDTLS_PK_PARSE_EC_COMPRESSED
|
||||
*
|
||||
* Enable the support for parsing public keys of type Short Weierstrass
|
||||
* (MBEDTLS_ECP_DP_SECP_XXX and MBEDTLS_ECP_DP_BP_XXX) which are using the
|
||||
* compressed point format. This parsing is done through ECP module's functions.
|
||||
*
|
||||
* \note As explained in the description of MBEDTLS_ECP_PF_COMPRESSED (in ecp.h)
|
||||
* the only unsupported curves are MBEDTLS_ECP_DP_SECP224R1 and
|
||||
* MBEDTLS_ECP_DP_SECP224K1.
|
||||
*/
|
||||
#ifdef CONFIG_MBEDTLS_PK_PARSE_EC_COMPRESSED
|
||||
#define MBEDTLS_PK_PARSE_EC_COMPRESSED
|
||||
#else
|
||||
#undef MBEDTLS_PK_PARSE_EC_COMPRESSED
|
||||
#endif
|
||||
|
||||
/**
|
||||
* \def MBEDTLS_ERROR_STRERROR_DUMMY
|
||||
|
Reference in New Issue
Block a user