提交 bcd6dcf5 编写于 作者: M me-no-dev

Fix compile error with IDF and mbedtls debug off

上级 00c1a656
......@@ -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()
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册