feat(wolfssl): Make wolfssl support TLSv1.0, TLSv1.1, TLSv1.2 protocols

This commit is contained in:
yuanjm
2019-08-22 19:29:20 +08:00
parent 0193d06019
commit 9ca3428e79

View File

@ -419,7 +419,7 @@ exit:
goto exit;
}
tls->ctx = wolfSSL_CTX_new(wolfTLSv1_2_client_method());
tls->ctx = wolfSSL_CTX_new(wolfSSLv23_client_method());
if (!tls->ctx) {
ESP_LOGE(TAG, "Set wolfSSL ctx failed");
goto exit;