]> git.wh0rd.org - tt-rss.git/commitdiff
add openssl version hack to fetch_file_contents()
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 20 Jul 2013 19:30:40 +0000 (23:30 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 20 Jul 2013 19:30:40 +0000 (23:30 +0400)
include/functions.php

index 6312fa761c7acfc5340b329a7e1b86aba87b331e..5e4d693c898805f92ec8dbb59d313a268fae3f5f 100644 (file)
                                curl_setopt($ch, CURLOPT_POSTFIELDS, $post_query);
                        }
 
+                       if ((OPENSSL_VERSION_NUMBER >= 0x0090808f) && (OPENSSL_VERSION_NUMBER < 0x10000000)) {
+                               curl_setopt($curl, CURLOPT_SSLVERSION, 3);
+                       }
+
                        if ($login && $pass)
                                curl_setopt($ch, CURLOPT_USERPWD, "$login:$pass");