From fb712e30a06eb5824d1d8803c5886871aeb21231 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sun, 29 Sep 2024 19:48:10 -0400 Subject: [PATCH] fix(curl): use stronger SSL and TLS versions (#3241) --- src/httpcommon.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/httpcommon.cpp b/src/httpcommon.cpp index 355ab6e9..5be5d9ba 100644 --- a/src/httpcommon.cpp +++ b/src/httpcommon.cpp @@ -217,6 +217,7 @@ namespace http { curl_easy_setopt(curl, CURLOPT_URL, url.c_str()); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, fwrite); curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp); + curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2); #ifdef _WIN32 curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA); #endif