Comment out functions for RINO crypt and disable RINO request and response.
}
-
+/** disable rino
if(! function_exists('aes_decrypt')) {
function aes_decrypt($val,$ky)
{
$val=str_pad($val, (16*(floor(strlen($val) / 16)+(strlen($val) % 16==0?2:1))), chr(16-(strlen($val) % 16)));
return mcrypt_encrypt($enc, $key, $val, $mode, mcrypt_create_iv( mcrypt_get_iv_size($enc, $mode), MCRYPT_DEV_URANDOM));
}}
-
+**/
function pkcs5_pad ($text, $blocksize)
{
if($contact['duplex'] && $contact['issued-id'])
$idtosend = '1:' . $orig_id;
+ /**
+ * disable rino.
$rino = ((function_exists('mcrypt_encrypt')) ? 1 : 0);
$rino_enable = get_config('system','rino_encrypt');
if(! $rino_enable)
$rino = 0;
-
+ **/
+ $rino = 0; $rino_enable = 0;
+
$ssl_val = intval(get_config('system','ssl_policy'));
$ssl_policy = '';
if($page)
$postvars['page'] = $page;
+ /** disable rino
if($rino && $rino_allowed && (! $dissolve)) {
$key = substr(random_string(),0,16);
$data = bin2hex(aes_encrypt($postvars['data'],$key));
$postvars['key'] = bin2hex($postvars['key']);
}
+ **/
logger('dfrn_deliver: ' . "SENDING: " . print_r($postvars,true), LOGGER_DATA);
if($importer['page-flags'] == PAGE_SOAPBOX)
xml_status(0);
-
+ /** disable rino
if(strlen($key)) {
$rawkey = hex2bin(trim($key));
logger('rino: md5 raw key: ' . md5($rawkey));
$data = aes_decrypt(hex2bin($data),$final_key);
logger('rino: decrypted data: ' . $data, LOGGER_DATA);
}
-
+ **/
$ret = local_delivery($importer,$data);
xml_status($ret);
$challenge = bin2hex($challenge);
$encrypted_id = bin2hex($encrypted_id);
+ /**
+ * disable rino.
$rino = ((function_exists('mcrypt_encrypt')) ? 1 : 0);
$rino_enable = get_config('system','rino_encrypt');
if(! $rino_enable)
$rino = 0;
-
+ **/
+ $rino = 0; $rino_enable = 0;
+
if((($r[0]['rel']) && ($r[0]['rel'] != CONTACT_IS_SHARING)) || ($r[0]['page-flags'] == PAGE_COMMUNITY)) {
$perm = 'rw';
}