rtorrent and those annoying SSL certificate errors

Got this today,

Tracker: [Peer certificate cannot be authenticated with known CA certificates]

A quick look at the sites certificate and it had expired, so into the source code and created a patch below.

Should also fix self-signed certificates errors.

--- rtorrent-0.8.9.org/src/core/curl_stack.cc   2012-09-15 15:58:54.000000000 +1200
+++ rtorrent-0.8.9.patched/src/core/curl_stack.cc       2012-09-15 15:46:54.000000000 +1200
@@ -52,7 +52,7 @@
   m_handle((void*)curl_multi_init()),
   m_active(0),
   m_maxActive(32),
-  m_ssl_verify_peer(true) {
+  m_ssl_verify_peer(false) {
 
   m_taskTimeout.set_slot(rak::mem_fn(this, &CurlStack::receive_timeout));
 
@@ -165,9 +165,10 @@
   if (!m_httpCaCert.empty())
     curl_easy_setopt(get->handle(), CURLOPT_CAINFO, m_httpCaCert.c_str());
 
-  if (!m_ssl_verify_peer)
+  if (!m_ssl_verify_peer) {
     curl_easy_setopt(get->handle(), CURLOPT_SSL_VERIFYPEER, 0);
-
+    curl_easy_setopt(get->handle(), CURLOPT_SSL_VERIFYHOST, 0);
+  }
   base_type::push_back(get);
 
   if (m_active >= m_maxActive)