Skip to content

Commit

Permalink
fix(curl): use stronger SSL and TLS versions (#3241)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Sep 29, 2024
1 parent 1839d59 commit fb712e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/httpcommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb712e3

Please sign in to comment.