- fix deps
[packages/rtorrent.git] / rtorrent-ssl-no-verify.patch
1 diff -urN rtorrent-0.7.9.org/src/core/curl_stack.cc rtorrent-0.7.9/src/core/curl_stack.cc
2 --- rtorrent-0.7.9.org/src/core/curl_stack.cc   2007-10-19 19:20:56.000000000 +0200
3 +++ rtorrent-0.7.9/src/core/curl_stack.cc       2007-12-05 22:04:50.282625460 +0100
4 @@ -127,6 +127,11 @@
5    if (!m_httpCaCert.empty())
6      curl_easy_setopt(get->handle(), CURLOPT_CAINFO, m_httpCaCert.c_str());
7  
8 +  if (m_httpCaPath.empty() && m_httpCaCert.empty()) {
9 +         curl_easy_setopt(get->handle(), CURLOPT_SSL_VERIFYPEER, 0);
10 +         curl_easy_setopt(get->handle(), CURLOPT_SSL_VERIFYHOST, 0);
11 +  }
12 +
13    base_type::push_back(get);
14  
15    if (m_active >= m_maxActive)