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

Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/828
This commit is contained in:
dongheng
2020-02-17 11:24:30 +08:00
parent 5c5ee66bd7
commit 66e746d767
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;
return -1;
}
tls->read = esp_mbedtls_read;
tls->write = esp_mbedtls_write;
tls->_read = esp_mbedtls_read;
tls->_write = esp_mbedtls_write;
int ret;
while ((ret = mbedtls_ssl_handshake(&tls->ssl)) != 0) {
if (ret != ESP_TLS_ERR_SSL_WANT_READ && ret != ESP_TLS_ERR_SSL_WANT_WRITE) {