Skip to content

Commit a859574

Browse files
author
Marc Stern
authored
Merge pull request #3041 from airween/v3/remoterulestls
Set the minimum security protocol version for SecRemoteRules
2 parents 9040893 + ec8e800 commit a859574

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
v3.x.y - YYYY-MMM-DD (to be released)
22
-------------------------------------
33

4+
- Set the minimum security protocol version for SecRemoteRules
5+
[Issue security/code-scanning/2 - @airween]
46

57
v3.0.11 - 2023-Dec-06
68
---------------------

src/utils/https_client.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ bool HttpsClient::download(const std::string &uri) {
8787
headers_chunk = curl_slist_append(headers_chunk, m_key.c_str());
8888
}
8989

90-
/* Make it TLS 1.x only. */
91-
curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);
90+
/* Make it TLS 1.2 at least. */
91+
curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
9292

9393
/* those are the default options, but lets make sure */
9494
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1);

0 commit comments

Comments
 (0)