From 9611f6a55acd103d1ba2cf1e18f6adc548fd5881 Mon Sep 17 00:00:00 2001 From: Sven Steckmann Date: Tue, 15 Oct 2019 17:05:23 +0200 Subject: [PATCH] Add an error message in case of invalid configured dependency mbedTLS. 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 ce8b31c727c..3fa6138f558 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";