From 91e095f5a76ec35f06c86689a87892425395b8db Mon Sep 17 00:00:00 2001 From: Sven <2790445+Boldie@users.noreply.github.com> Date: Thu, 17 Oct 2019 08:48:36 +0200 Subject: [PATCH] Add an error message in case of invalid configured dependency mbedTLS. (#3364) Especially if the user wants to use the library as component in IDF, there are some pitfalls while doing make menuconfig. One is this missing dependency which will now fail with a better error message with a hint to the user how to fix it. refs #2154 #3215 --- libraries/WiFiClientSecure/src/ssl_client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/WiFiClientSecure/src/ssl_client.cpp b/libraries/WiFiClientSecure/src/ssl_client.cpp index ce8b31c7..3fa6138f 100644 --- a/libraries/WiFiClientSecure/src/ssl_client.cpp +++ b/libraries/WiFiClientSecure/src/ssl_client.cpp @@ -19,6 +19,9 @@ #include "ssl_client.h" #include "WiFi.h" +#ifndef MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED +# error "Please configure IDF framework to include mbedTLS -> Enable pre-shared-key ciphersuites and activate at least one cipher" +#endif const char *pers = "esp32-tls";