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
This commit is contained in:
Sven 2019-10-17 08:48:36 +02:00 committed by Me No Dev
parent c8d8dc2265
commit 91e095f5a7

View File

@ -19,6 +19,9 @@
#include "ssl_client.h" #include "ssl_client.h"
#include "WiFi.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"; const char *pers = "esp32-tls";