Skip to content

Commit

Permalink
Enable HTTPS certificate validation on desktop platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
rollerozxa committed Dec 8, 2024
1 parent 7085fba commit 6b61fe8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/src/network.cc
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,10 @@ init_curl_defaults(void *curl)
{
curl_easy_reset(P.curl);

curl_easy_setopt(P.curl, CURLOPT_SSL_VERIFYHOST, 0); /* XXX */
curl_easy_setopt(P.curl, CURLOPT_SSL_VERIFYPEER, 0); /* XXX */
#ifdef TMS_BACKEND_ANDROID
// XXX: Fix cert verification on Android
curl_easy_setopt(P.curl, CURLOPT_SSL_VERIFYPEER, 0);
#endif

char ua[512];
snprintf(ua, 511, "Principia/%d (%s) (%s)",
Expand Down

0 comments on commit 6b61fe8

Please sign in to comment.