summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-07-20 23:30:40 +0400
committerAndrew Dolgov <[email protected]>2013-07-20 23:30:40 +0400
commitd86945c7ef4610cc8f34d8883fcdcb543ec2741c (patch)
tree261376dcc632632330dd2e5a45d7f5b4326bbc36 /include
parent60a1e7e795e834f174283acfca3ab82b072c1479 (diff)
add openssl version hack to fetch_file_contents()
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 6312fa761..5e4d693c8 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");