From efc761d7947fc3181f9a94cfb1de2436f24c3140 Mon Sep 17 00:00:00 2001 From: Stone Li Date: Wed, 14 Dec 2022 15:58:51 +0800 Subject: [PATCH] ENH: set ssl version to 1.2 Change-Id: I859d55b0b0adf04e79ae812fafb04dc310ca4587 Signed-off-by: Stone Li --- src/slic3r/Utils/Http.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/Utils/Http.cpp b/src/slic3r/Utils/Http.cpp index b5dd178f0..7df1a8117 100644 --- a/src/slic3r/Utils/Http.cpp +++ b/src/slic3r/Utils/Http.cpp @@ -164,7 +164,9 @@ Http::priv::priv(const std::string &url) ::curl_easy_setopt(curl, CURLOPT_URL, url.c_str()); // curl makes a copy internally ::curl_easy_setopt(curl, CURLOPT_USERAGENT, SLIC3R_APP_NAME "/" SLIC3R_VERSION); ::curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, &error_buffer.front()); - +#ifdef __WINDOWS__ + ::curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_MAX_TLSv1_2); +#endif ::curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); ::curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); }