commit 0918a84fa421622908a162ca9f0c3042e2812327
parent 26bd658d07ae64bbf2524dd53652c1e21d525c1e
Author: cfillion <cfillion@users.noreply.github.com>
Date: Fri, 20 Apr 2018 19:44:32 -0400
download: prevent odd cURL macOS builds from attempting to use a CA cert file [p=1956940]
https://curl.haxx.se/mail/lib-2017-11/0070.html
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/download.cpp b/src/download.cpp
@@ -120,6 +120,8 @@ bool Download::run()
curl_easy_setopt(m_ctx->m_curl, CURLOPT_URL, m_url.c_str());
curl_easy_setopt(m_ctx->m_curl, CURLOPT_PROXY, m_opts.proxy.c_str());
curl_easy_setopt(m_ctx->m_curl, CURLOPT_SSL_VERIFYPEER, m_opts.verifyPeer);
+ curl_easy_setopt(m_ctx->m_curl, CURLOPT_CAINFO, nullptr);
+ curl_easy_setopt(m_ctx->m_curl, CURLOPT_PROXY_CAINFO, nullptr);
curl_easy_setopt(m_ctx->m_curl, CURLOPT_PROGRESSFUNCTION, UpdateProgress);
curl_easy_setopt(m_ctx->m_curl, CURLOPT_PROGRESSDATA, this);