* @brief The dfrn notify endpoint
* @see PDF with dfrn specs: https://github.com/friendica/friendica/blob/master/spec/dfrn2.pdf
*/
+
+use Friendica\App;
+
require_once('include/items.php');
require_once('include/dfrn.php');
require_once('include/event.php');
$rino = get_config('system', 'rino_encrypt');
$rino = intval($rino);
- // use RINO1 if mcrypt isn't installed and RINO2 was selected
- if ($rino == 2 && !function_exists('mcrypt_create_iv')) {
- $rino = 1;
- }
logger("Local rino version: " . $rino, LOGGER_DEBUG);
case 0:
case 1:
/*
- * we got a key. old code send only the key, without RINO version.
+ *we got a key. old code send only the key, without RINO version.
* we assume RINO 1 if key and no RINO version
*/
- $data = aes_decrypt(hex2bin($data), $final_key);
+ $data = dfrn::aes_decrypt(hex2bin($data), $final_key);
break;
case 2:
try {
$rino = get_config('system', 'rino_encrypt');
$rino = intval($rino);
- // use RINO1 if mcrypt isn't installed and RINO2 was selected
- if ($rino == 2 && !function_exists('mcrypt_create_iv')) {
- $rino = 1;
- }
logger("Local rino version: ". $rino, LOGGER_DEBUG);