From b91be70d39d5ba458891530b8a6934d58208205f Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Mon, 11 Nov 2024 07:58:32 +0100 Subject: [PATCH] disable ssl verification on windows --- get.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/get.c b/get.c index f25e70f..fc8075e 100644 --- a/get.c +++ b/get.c @@ -16,6 +16,11 @@ int main(int argc, char *argv[]) { curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); +#if defined(_WIN32) + curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L); + curl_easy_setopt(hnd, CURLOPT_ssl_verifyhost, 0L); +#endif + ret = curl_easy_perform(hnd); if (ret != CURLE_OK) { fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(ret));