From 1b5bd29c57f85bdeddc1b24552e169bdd514bbc5 Mon Sep 17 00:00:00 2001 From: jak1 Date: Sat, 17 Dec 2022 13:35:24 +0100 Subject: disable SSL for downloads, since Windows\' OpenSSL doesnt support it. --- src/net/download.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/net/download.cpp b/src/net/download.cpp index 521c40eb9..a8ee03f77 100644 --- a/src/net/download.cpp +++ b/src/net/download.cpp @@ -308,6 +308,11 @@ int Download::downloadThread(void *ptr) curl_easy_setopt(d->mCurl, CURLOPT_FOLLOWLOCATION, 1); curl_easy_setopt(d->mCurl, CURLOPT_HTTPHEADER, d->mHeaders); + // ignore SSL verificytion, windows' OpenSSL is very limited + if (strstr(d->mUrl.c_str(), "https://") != NULL) + { + curl_easy_setopt(d->mCurl, CURLOPT_SSL_VERIFYPEER, 0L); + } if (d->mOptions.memoryWrite != 0U) { curl_easy_setopt(d->mCurl, CURLOPT_FAILONERROR, 1); -- cgit v1.2.3-70-g09d2