]> git.wh0rd.org Git - tt-rss.git/commitdiff
add workaround for openssl 0.9 bug (http://tt-rss.org/forum/viewtopic.php?t=2420...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Jul 2013 14:15:28 +0000 (18:15 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Jul 2013 14:15:28 +0000 (18:15 +0400)
include/functions.php

index 3c1956ea225710ef83979a1069d2fefdbee9e5ef..58aad111371d4da3a6bd21196e81f8a77752e056 100644 (file)
                curl_setopt($curl, CURLOPT_TIMEOUT, 60);
                curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
 
+               if ((OPENSSL_VERSION_NUMBER >= 0x0090808f) && (OPENSSL_VERSION_NUMBER < 0x10000000)) {
+                       curl_setopt($curl, CURLOPT_SSLVERSION, 3);
+               }
+
                $html = curl_exec($curl);
 
                $status = curl_getinfo($curl);