From 93e9ba52fe5f4062de75665fbadb6ec707d7ee72 Mon Sep 17 00:00:00 2001 From: tdcosta100 Date: Wed, 3 May 2023 06:34:31 -0300 Subject: [PATCH] Remove TLS limitation for cURL in Windows (#1093) --- platform/default/src/mbgl/storage/http_file_source.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/platform/default/src/mbgl/storage/http_file_source.cpp b/platform/default/src/mbgl/storage/http_file_source.cpp index f6bcca8ac..4425bd1ee 100644 --- a/platform/default/src/mbgl/storage/http_file_source.cpp +++ b/platform/default/src/mbgl/storage/http_file_source.cpp @@ -278,11 +278,6 @@ HTTPRequest::HTTPRequest(HTTPFileSource::Impl *context_, Resource resource_, Fil curl_easy_setopt(handle, CURLOPT_HTTPHEADER, headers); } -#ifdef WIN32 - // Windows has issues with TLSv1.3, so we limit to TLSv1.2. Should be - // resolved in a later cURL release https://github.com/curl/curl/issues/9431 - handleError(curl_easy_setopt(handle, CURLOPT_SSLVERSION, CURL_SSLVERSION_MAX_TLSv1_2)); -#endif handleError(curl_easy_setopt(handle, CURLOPT_PRIVATE, this)); handleError(curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, error)); handleError(curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1));