From 6b61fe8ca717a854235ca3b4e0ae8b5faa2090fc Mon Sep 17 00:00:00 2001 From: ROllerozxa Date: Sun, 8 Dec 2024 16:35:01 +0100 Subject: [PATCH] Enable HTTPS certificate validation on desktop platforms --- src/src/network.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/src/network.cc b/src/src/network.cc index 8facedbf..61478efa 100644 --- a/src/src/network.cc +++ b/src/src/network.cc @@ -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)",