Skip to content

Commit 9611f6a

Browse files
author
Sven Steckmann
committed
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 espressif#2154 espressif#3215
1 parent c8d8dc2 commit 9611f6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: libraries/WiFiClientSecure/src/ssl_client.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
#include "ssl_client.h"
2020
#include "WiFi.h"
2121

22+
#ifndef MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED
23+
# error "Please configure IDF framework to include mbedTLS -> Enable pre-shared-key ciphersuites and activate at least one cipher"
24+
#endif
2225

2326
const char *pers = "esp32-tls";
2427

0 commit comments

Comments
 (0)