esp_tls_wolfssl: 1) Fix SNI for wolfSSL

2) Fix error captures
3) Add error flags specific wolfSSL
4) make respective changes to esp_err_to_name.c
This commit is contained in:
Aditya Patwardhan
2020-02-27 15:20:22 +05:30
parent d35862b662
commit 0a25922043
4 changed files with 113 additions and 52 deletions
@@ -35,11 +35,6 @@ ssize_t esp_wolfssl_read(esp_tls_t *tls, char *data, size_t datalen);
*/
ssize_t esp_wolfssl_write(esp_tls_t *tls, const char *data, size_t datalen);
/**
* Configures the SSL/TLS connection for client method
*/
esp_err_t set_client_config(const char *hostname, size_t hostlen, esp_tls_cfg_t *cfg, esp_tls_t *tls);
/**
* Internal Callback for wolfssl_cleanup , frees up all the memory used by wolfssl
*/
@@ -78,11 +73,6 @@ esp_err_t esp_wolfssl_init_global_ca_store(void);
#ifdef CONFIG_ESP_TLS_SERVER
/**
* Configures the SSL/TLS connection for server method
*/
esp_err_t set_server_config(esp_tls_cfg_server_t *cfg, esp_tls_t *tls);
/**
* Function to Create ESP-TLS Server session with wolfssl Stack
*/