{"id":170,"date":"2014-08-19T15:23:08","date_gmt":"2014-08-19T13:23:08","guid":{"rendered":"https:\/\/kszyh.kisim.eu.org\/?p=170"},"modified":"2014-08-19T16:02:09","modified_gmt":"2014-08-19T14:02:09","slug":"rtorrent-0-9-2-ssl-trackers-patch","status":"publish","type":"post","link":"https:\/\/kszyh.kisim.eu.org\/?p=170","title":{"rendered":"Rtorrent 0.9.2 SSL Trackers Patch"},"content":{"rendered":"<p>Fix na b\u0142\u0105d:<\/p>\n<p>Tracker: [Peer certificate cannot be authenticated with known CA certificates]<\/p>\n<pre class=\"lang:diff decode:true \" >diff -urNp rtorrent-0.9.2\/src\/core\/curl_stack.cc rtorrent-0.9.2-mod\/src\/core\/curl_stack.cc\r\n--- rtorrent-0.9.2\/src\/core\/curl_stack.cc\t2012-02-14 04:32:01.000000000 +0100\r\n+++ rtorrent-0.9.2-mod\/src\/core\/curl_stack.cc\t2014-08-19 09:30:07.379604251 +0200\r\n@@ -52,7 +52,7 @@ CurlStack::CurlStack() :\r\n   m_handle((void*)curl_multi_init()),\r\n   m_active(0),\r\n   m_maxActive(32),\r\n-  m_ssl_verify_peer(true),\r\n+  m_ssl_verify_peer(false),\r\n   m_dns_timeout(60) {\r\n \r\n   m_taskTimeout.slot() = std::tr1::bind(&CurlStack::receive_timeout, this);\r\n@@ -165,8 +165,10 @@ CurlStack::add_get(CurlGet* get) {\r\n \r\n   if (!m_httpCaCert.empty())\r\n     curl_easy_setopt(get->handle(), CURLOPT_CAINFO, m_httpCaCert.c_str());\r\n-\r\n-  curl_easy_setopt(get->handle(), CURLOPT_SSL_VERIFYPEER, (long)m_ssl_verify_peer); \r\n+if (!m_ssl_verify_peer) {\r\n+  curl_easy_setopt(get->handle(), CURLOPT_SSL_VERIFYPEER, 0);\r\n+ curl_easy_setopt(get->handle(), CURLOPT_SSL_VERIFYHOST, 0);\r\n+} \r\n   curl_easy_setopt(get->handle(), CURLOPT_DNS_CACHE_TIMEOUT, m_dns_timeout);\r\n \r\n   base_type::push_back(get); <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Fix na b\u0142\u0105d: Tracker: [Peer certificate cannot be authenticated with known CA certificates] diff -urNp rtorrent-0.9.2\/src\/core\/curl_stack.cc rtorrent-0.9.2-mod\/src\/core\/curl_stack.cc &#8212; rtorrent-0.9.2\/src\/core\/curl_stack.cc 2012-02-14 04:32:01.000000000 +0100 +++ rtorrent-0.9.2-mod\/src\/core\/curl_stack.cc 2014-08-19 09:30:07.379604251 +0200 @@ -52,7 +52,7 @@ CurlStack::CurlStack() : m_handle((void*)curl_multi_init()), m_active(0), m_maxActive(32), &#8211; m_ssl_verify_peer(true), + m_ssl_verify_peer(false), m_dns_timeout(60) { m_taskTimeout.slot() = std::tr1::bind(&#038;CurlStack::receive_timeout, this); @@ -165,8 +165,10 @@&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/kszyh.kisim.eu.org\/?p=170\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[55],"class_list":["post-170","post","type-post","status-publish","format-standard","hentry","category-linux","tag-rtorrent"],"_links":{"self":[{"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=170"}],"version-history":[{"count":3,"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/170\/revisions"}],"predecessor-version":[{"id":173,"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/170\/revisions\/173"}],"wp:attachment":[{"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}