Skip to content

Commit

Permalink
Set the minimum security protocol version for SecRemoteRules
Browse files Browse the repository at this point in the history
  • Loading branch information
airween committed Jan 27, 2024
1 parent 7aae94b commit ec8e800
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
v3.x.y - YYYY-MMM-DD (to be released)
-------------------------------------

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

v3.0.11 - 2023-Dec-06
---------------------
Expand Down
4 changes: 2 additions & 2 deletions src/utils/https_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ bool HttpsClient::download(const std::string &uri) {
headers_chunk = curl_slist_append(headers_chunk, m_key.c_str());
}

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

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

0 comments on commit ec8e800

Please sign in to comment.