From 93b4aa15c27f5b8886befb05e6afe3fcecb52432 Mon Sep 17 00:00:00 2001 From: hiker Date: Wed, 10 Dec 2014 12:23:35 +1100 Subject: [PATCH] Disable CURLOPT_SSL_VERIFYHOST on OSX, since it doesn't work (with osx's curl version at least). --- src/online/http_request.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/online/http_request.cpp b/src/online/http_request.cpp index 643e9f259..b42b222d5 100644 --- a/src/online/http_request.cpp +++ b/src/online/http_request.cpp @@ -194,7 +194,11 @@ namespace Online else curl_easy_setopt(m_curl_session, CURLOPT_SSL_VERIFYPEER, 0L); +#ifdef __APPLE__ + curl_easy_setopt(m_curl_session, CURLOPT_SSL_VERIFYHOST, 0L); +#else curl_easy_setopt(m_curl_session, CURLOPT_SSL_VERIFYHOST, 1L); +#endif } } // prepareOperation