Remove TLS limitation for cURL in Windows (#1093)

This commit is contained in:
tdcosta100
2023-05-03 06:34:31 -03:00
committed by GitHub
parent 958cdb8206
commit 93e9ba52fe

View File

@@ -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));