From a8b6c4b121f6c3a6afc73e388e955c4218d46cb7 Mon Sep 17 00:00:00 2001 From: Dong Heng Date: Thu, 13 Sep 2018 13:23:29 +0800 Subject: [PATCH] feat(mbedtls): Add DHM configuration to Kconfig --- components/ssl/Kconfig | 6 ++++++ .../ssl/mbedtls/port/esp8266/include/mbedtls/esp_config.h | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/components/ssl/Kconfig b/components/ssl/Kconfig index 8ac28716..647a978b 100644 --- a/components/ssl/Kconfig +++ b/components/ssl/Kconfig @@ -381,6 +381,12 @@ config MBEDTLS_ECDH_C help Enable ECDH. Needed to use ECDHE-xxx TLS ciphersuites. +config MBEDTLS_DHM_C + bool "Diffie-Hellman-Merkle(DHM)" + default y + help + Enable the Diffie-Hellman-Merkle module. + config MBEDTLS_ECDSA_C bool "Elliptic Curve DSA" depends on MBEDTLS_ECDH_C diff --git a/components/ssl/mbedtls/port/esp8266/include/mbedtls/esp_config.h b/components/ssl/mbedtls/port/esp8266/include/mbedtls/esp_config.h index acc36537..3afb6cc6 100644 --- a/components/ssl/mbedtls/port/esp8266/include/mbedtls/esp_config.h +++ b/components/ssl/mbedtls/port/esp8266/include/mbedtls/esp_config.h @@ -2024,7 +2024,9 @@ * See dhm.h for more details. * */ -//#define MBEDTLS_DHM_C +#ifdef CONFIG_MBEDTLS_DHM_C +#define MBEDTLS_DHM_C +#endif /** * \def MBEDTLS_ECDH_C