diff --git a/libraries/WiFiClientSecure/src/WiFiClientSecure.cpp b/libraries/WiFiClientSecure/src/WiFiClientSecure.cpp index 8c8ddc8b..a3da66d2 100644 --- a/libraries/WiFiClientSecure/src/WiFiClientSecure.cpp +++ b/libraries/WiFiClientSecure/src/WiFiClientSecure.cpp @@ -39,6 +39,7 @@ WiFiClientSecure::WiFiClientSecure() _CA_cert = NULL; _cert = NULL; _private_key = NULL; + next = NULL; } @@ -57,6 +58,7 @@ WiFiClientSecure::WiFiClientSecure(int sock) _CA_cert = NULL; _cert = NULL; _private_key = NULL; + next = NULL; } WiFiClientSecure::~WiFiClientSecure() diff --git a/libraries/WiFiClientSecure/src/ssl_client.cpp b/libraries/WiFiClientSecure/src/ssl_client.cpp index eb348ff1..90d7b081 100644 --- a/libraries/WiFiClientSecure/src/ssl_client.cpp +++ b/libraries/WiFiClientSecure/src/ssl_client.cpp @@ -18,7 +18,7 @@ const char *pers = "esp32-tls"; -#define DEBUG true //Set false to supress debug messages +#define DEBUG //Comment to supress debug messages #ifdef DEBUG #define DEBUG_PRINT(...) printf( __VA_ARGS__ ) @@ -26,7 +26,7 @@ const char *pers = "esp32-tls"; #define DEBUG_PRINT(x) #endif -#ifdef MBEDTLS_DEBUG_C +#ifdef CONFIG_MBEDTLS_DEBUG #define MBEDTLS_DEBUG_LEVEL 4 @@ -201,7 +201,7 @@ int start_ssl_client(sslclient_context *ssl_client, uint32_t ipAddress, uint32_t } mbedtls_ssl_conf_rng(&ssl_client->ssl_conf, mbedtls_ctr_drbg_random, &ssl_client->drbg_ctx); -#ifdef MBEDTLS_DEBUG_C +#ifdef CONFIG_MBEDTLS_DEBUG mbedtls_debug_set_threshold(MBEDTLS_DEBUG_LEVEL); mbedtls_ssl_conf_dbg(&ssl_client->ssl_conf, mbedtls_debug, NULL); #endif