components/openssl: refacetor the SSL debug function

Add the "ssl_opt.h" file to make user able t add its platform interface
This commit is contained in:
Dong Heng
2016-11-01 14:59:50 +08:00
parent 8d1f360ca6
commit bc710e5b88
3 changed files with 20 additions and 10 deletions

View File

@@ -24,6 +24,7 @@
#ifdef ESP32_IDF_PLATFORM
#include "esp_types.h"
#include "esp_log.h"
void *ssl_mem_zalloc(size_t size);
void *ssl_mem_malloc(size_t size);
@@ -35,6 +36,8 @@ size_t ssl_strlen(const char *src);
void ssl_speed_up_enter(void);
void ssl_speed_up_exit(void);
#define SSL_PRINT(fmt, ...) ESP_LOGD("OpenSSL", fmt, ##__VA_ARGS__)
#elif defined(SSL_PLATFORM_USER_INCLUDE)
SSL_PLATFORM_USER_INCLUDE