From 9ca3428e79a98e70e45d7dfb505621db1e83254c Mon Sep 17 00:00:00 2001 From: yuanjm Date: Thu, 22 Aug 2019 19:29:20 +0800 Subject: [PATCH] feat(wolfssl): Make wolfssl support TLSv1.0, TLSv1.1, TLSv1.2 protocols --- components/esp-tls/esp_tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp-tls/esp_tls.c b/components/esp-tls/esp_tls.c index 179e9b42..65d8f772 100644 --- a/components/esp-tls/esp_tls.c +++ b/components/esp-tls/esp_tls.c @@ -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;