Skip to content

Commit

Permalink
If using WebHooks over HTTPS (i.e. in prod), only allow TLSv1.2 and T…
Browse files Browse the repository at this point in the history
  • Loading branch information
ghenry committed Aug 22, 2022
1 parent 5935852 commit e789386
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/json_logger.c
Expand Up @@ -268,6 +268,9 @@ int json_http_post_bad_actor(const sentrypeer_config *config,

curl_easy_setopt(curl, CURLOPT_USERAGENT, SENTRYPEER_USERAGENT);

// Enables TLSv1.2 / TLSv1.3 version only
curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);

// Complete within 2 seconds
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 2L);

Expand Down

0 comments on commit e789386

Please sign in to comment.