Don't check certs when root certs are n/a on target machine

This commit is contained in:
Robin Gareus 2025-02-10 15:12:02 +01:00
parent 870af9fd23
commit 12b215b0d6
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -63,6 +63,9 @@ HttpGet::ca_setopt (CURL* c)
} }
if (ca_info || ca_path) { if (ca_info || ca_path) {
curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 1); curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 1);
} else {
curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0);
curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0);
} }
} }