From 7375e305060df3818f01a96fbbd811921468ad89 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 25 Mar 2014 15:19:18 -0700 Subject: This should be a slight improvement in setting ciphers - we'll punt on RedHat but open up the list just for openssl distros which seem to have all the problems at the moment. --- boot.php | 2 +- include/network.php | 12 ++++-------- install/update.php | 11 +++++++++-- mod/setup.php | 19 +++++++++++++++++++ view/en/htconfig.tpl | 7 ------- 5 files changed, 33 insertions(+), 18 deletions(-) diff --git a/boot.php b/boot.php index a5a48b2bf..4c024309b 100755 --- a/boot.php +++ b/boot.php @@ -47,7 +47,7 @@ define ( 'RED_PLATFORM', 'Red Matrix' ); define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R'); define ( 'ZOT_REVISION', 1 ); -define ( 'DB_UPDATE_VERSION', 1103 ); +define ( 'DB_UPDATE_VERSION', 1104 ); define ( 'EOL', '
' . "\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/include/network.php b/include/network.php index 14771d88f..9f68328b7 100644 --- a/include/network.php +++ b/include/network.php @@ -44,10 +44,8 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) { @curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Red)"); $ciphers = @get_config('system','curl_ssl_ciphers'); - if(! $ciphers) - $ciphers = 'ALL:!eNULL'; - - @curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, $ciphers); + if($ciphers) + @curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, $ciphers); if (x($opts,'accept_content')){ @curl_setopt($ch,CURLOPT_HTTPHEADER, array ( @@ -152,10 +150,8 @@ function z_post_url($url,$params, $redirects = 0, $opts = array()) { @curl_setopt($ch, CURLOPT_USERAGENT, "Red"); $ciphers = @get_config('system','curl_ssl_ciphers'); - if(! $ciphers) - $ciphers = 'ALL:!eNULL'; - - @curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, $ciphers); + if($ciphers) + @curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, $ciphers); if (x($opts,'accept_content')){ diff --git a/install/update.php b/install/update.php index 11b1c1da6..06a60db79 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ get_baseurl(); return t('

What next

') diff --git a/view/en/htconfig.tpl b/view/en/htconfig.tpl index 8e2d32433..840e7a124 100644 --- a/view/en/htconfig.tpl +++ b/view/en/htconfig.tpl @@ -85,13 +85,6 @@ $a->config['system']['php_path'] = '{{$phpath}}'; $a->config['system']['directory_mode'] = DIRECTORY_MODE_NORMAL; - -// libcurl default ciphers - Redhat and NSS based systems may use a different -// syntax. This indicates the ciphers we will accept when connecting to any -// https site. We want this to be as liberal as possible. - -$a->config['system']['curl_ssl_ciphers'] = 'ALL:!eNULL'; - // default system theme $a->config['system']['theme'] = 'redbasic'; -- cgit v1.2.3