summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjak1 <jak1@themanaworld.org>2022-12-17 13:35:24 +0100
committerjak1 <jak1@themanaworld.org>2022-12-18 17:47:34 +0000
commit1b5bd29c57f85bdeddc1b24552e169bdd514bbc5 (patch)
treed37a13e55b06fd9e1e96e8b1595bae046124194f
parent0baa2fe8c2c2c6a2620e6c4e01e0d71ab26cf663 (diff)
downloadmv-1b5bd29c57f85bdeddc1b24552e169bdd514bbc5.tar.gz
mv-1b5bd29c57f85bdeddc1b24552e169bdd514bbc5.tar.bz2
mv-1b5bd29c57f85bdeddc1b24552e169bdd514bbc5.tar.xz
mv-1b5bd29c57f85bdeddc1b24552e169bdd514bbc5.zip
disable SSL for downloads, since Windows\' OpenSSL doesnt support it.
-rw-r--r--src/net/download.cpp5
1 files changed, 5 insertions, 0 deletions
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);