Merge branch 'bugfix/fix_esp_tls_server_compiling_error' into 'master'

fix(esp-tls): fix esp-tls compiling error

See merge request sdk/ESP8266_RTOS_SDK!1300
This commit is contained in:
Dong Heng
2020-02-17 12:37:09 +08:00
2 changed files with 5 additions and 2 deletions

View File

@ -470,8 +470,8 @@ int esp_mbedtls_server_session_create(esp_tls_cfg_server_t *cfg, int sockfd, esp
tls->conn_state = ESP_TLS_FAIL; tls->conn_state = ESP_TLS_FAIL;
return -1; return -1;
} }
tls->read = esp_mbedtls_read; tls->_read = esp_mbedtls_read;
tls->write = esp_mbedtls_write; tls->_write = esp_mbedtls_write;
int ret; int ret;
while ((ret = mbedtls_ssl_handshake(&tls->ssl)) != 0) { while ((ret = mbedtls_ssl_handshake(&tls->ssl)) != 0) {
if (ret != ESP_TLS_ERR_SSL_WANT_READ && ret != ESP_TLS_ERR_SSL_WANT_WRITE) { if (ret != ESP_TLS_ERR_SSL_WANT_READ && ret != ESP_TLS_ERR_SSL_WANT_WRITE) {

View File

@ -0,0 +1,3 @@
CONFIG_LWIP_IPV6=y
CONFIG_ESP_TLS_SERVER=y