diff options
author | jak1 <jak1@themanaworld.org> | 2022-12-17 13:35:24 +0100 |
---|---|---|
committer | jak1 <jak1@themanaworld.org> | 2022-12-18 17:47:34 +0000 |
commit | 1b5bd29c57f85bdeddc1b24552e169bdd514bbc5 (patch) | |
tree | d37a13e55b06fd9e1e96e8b1595bae046124194f /src | |
parent | 0baa2fe8c2c2c6a2620e6c4e01e0d71ab26cf663 (diff) | |
download | plus-1b5bd29c57f85bdeddc1b24552e169bdd514bbc5.tar.gz plus-1b5bd29c57f85bdeddc1b24552e169bdd514bbc5.tar.bz2 plus-1b5bd29c57f85bdeddc1b24552e169bdd514bbc5.tar.xz plus-1b5bd29c57f85bdeddc1b24552e169bdd514bbc5.zip |
disable SSL for downloads, since Windows\' OpenSSL doesnt support it.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/download.cpp | 5 |
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); |