diff options
author | friendica <info@friendica.com> | 2012-03-14 20:36:23 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-14 20:36:23 -0700 |
commit | f0a62d8908cef31982c1c2b24fc9dbc8b59b8bdb (patch) | |
tree | d39ffaeeec66f6241acd2808f3eb79439729cc20 /include/items.php | |
parent | 64e3e3590b8ef04a1fdb1cccabc3970295ef92f2 (diff) | |
download | volse-hubzilla-f0a62d8908cef31982c1c2b24fc9dbc8b59b8bdb.tar.gz volse-hubzilla-f0a62d8908cef31982c1c2b24fc9dbc8b59b8bdb.tar.bz2 volse-hubzilla-f0a62d8908cef31982c1c2b24fc9dbc8b59b8bdb.zip |
ssl_policy stuff
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php index 70c72ae16..4b1523ff6 100755 --- a/include/items.php +++ b/include/items.php @@ -1046,6 +1046,21 @@ function dfrn_deliver($owner,$contact,$atom, $dissolve = false) { if(! $rino_enable) $rino = 0; + $ssl_val = intval(get_config('system','ssl_policy')); + $ssl_policy = ''; + switch($ssl_val){ + case SSL_POLICY_FULL: + $ssl_policy = 'full'; + break; + case SSL_POLICY_SELFSIGN: + $ssl_policy = 'self'; + break; + case SSL_POLICY_NONE: + default: + $ssl_policy = 'none'; + break; + } + $url = $contact['notify'] . '&dfrn_id=' . $idtosend . '&dfrn_version=' . DFRN_PROTOCOL_VERSION . (($rino) ? '&rino=1' : ''); logger('dfrn_deliver: ' . $url); @@ -1118,6 +1133,8 @@ function dfrn_deliver($owner,$contact,$atom, $dissolve = false) { $postvars['perm'] = 'r'; } + $postvars['ssl_policy'] = $ssl_policy; + if($rino && $rino_allowed && (! $dissolve)) { $key = substr(random_string(),0,16); $data = bin2hex(aes_encrypt($postvars['data'],$key)); |