From 9513f1f1668a33be3fc2b241fe3662e9de42d84b Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 1 Dec 2010 13:39:00 -0800 Subject: rino recipient patch --- mod/dfrn_notify.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mod/dfrn_notify.php') diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index 830a2d255..cd7523a01 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -483,12 +483,21 @@ function dfrn_notify_content(&$a) { $challenge = bin2hex($challenge); $encrypted_id = bin2hex($encrypted_id); + $rino = ((function_exists('mcrypt_encrypt')) ? 1 : 0); + + $rino_enable = get_config('system','rino_encrypt'); + + if(! $rino_enable) + $rino = 0; + + header("Content-type: text/xml"); echo '' . "\r\n" . '' . "\r\n" . "\t" . '' . $status . '' . "\r\n" . "\t" . '' . DFRN_PROTOCOL_VERSION . '' . "\r\n" + . "\t" . '' . $rino . '' . "\r\n" . "\t" . '' . $encrypted_id . '' . "\r\n" . "\t" . '' . $challenge . '' . "\r\n" . '' . "\r\n" ; -- cgit v1.2.3