From: Andrew Dolgov Date: Sat, 20 Jul 2013 19:30:40 +0000 (+0400) Subject: add openssl version hack to fetch_file_contents() X-Git-Tag: 1.9~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d86945c7ef4610cc8f34d8883fcdcb543ec2741c;p=tt-rss.git add openssl version hack to fetch_file_contents() --- diff --git a/include/functions.php b/include/functions.php index 6312fa76..5e4d693c 100644 --- a/include/functions.php +++ b/include/functions.php @@ -349,6 +349,10 @@ 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");