From 1fefc4720bc8769f6c5d27e4e9385df06955e54d Mon Sep 17 00:00:00 2001 From: rakshasa Date: Thu, 12 Jun 2014 22:19:33 +0900 Subject: [PATCH] Forgot to commit changes to how ssl_verify_host/peer parameters are converted. --- src/core/curl_stack.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/curl_stack.cc b/src/core/curl_stack.cc index 8fcdded3..72cb3a0a 100644 --- a/src/core/curl_stack.cc +++ b/src/core/curl_stack.cc @@ -181,9 +181,9 @@ CurlStack::add_get(CurlGet* get) { if (!m_httpCaCert.empty()) curl_easy_setopt(get->handle(), CURLOPT_CAINFO, m_httpCaCert.c_str()); - curl_easy_setopt(get->handle(), CURLOPT_SSL_VERIFYPEER, (long)m_ssl_verify_peer); + curl_easy_setopt(get->handle(), CURLOPT_SSL_VERIFYHOST, (long)(m_ssl_verify_host ? 2 : 0)); + curl_easy_setopt(get->handle(), CURLOPT_SSL_VERIFYPEER, (long)(m_ssl_verify_peer ? 1 : 0)); curl_easy_setopt(get->handle(), CURLOPT_DNS_CACHE_TIMEOUT, m_dns_timeout); - curl_easy_setopt(get->handle(), CURLOPT_SSL_VERIFYHOST, m_ssl_verify_host); base_type::push_back(get);