summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-07-16 18:15:28 +0400
committerAndrew Dolgov <[email protected]>2013-07-16 18:15:28 +0400
commitaefed7f75cae38b16b741c50743cfe1e44a71119 (patch)
treeb9817287bd39f8b9fbbc22bfebb04b3bf42ac610 /include
parent898f86c0737835e7e24c50d45efa44a3d47c9ee6 (diff)
add workaround for openssl 0.9 bug (http://tt-rss.org/forum/viewtopic.php?t=2420&p=13734#p13734)
Diffstat (limited to 'include')
-rw-r--r--include/functions.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 3c1956ea2..58aad1113 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -4153,6 +4153,10 @@
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);