aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-02-18 09:36:22 +0000
committerMario <mario@mariovavti.com>2021-02-18 09:36:22 +0000
commit92f3c5ae2191dbffcc327dd1068e692467dc24dd (patch)
tree72cefec7d6d1392d6871bb0f3e8cc204acc94636 /include/zot.php
parentc3ec5d4d6ac48988b70d17b0b08b35da92cfa24f (diff)
downloadvolse-hubzilla-92f3c5ae2191dbffcc327dd1068e692467dc24dd.tar.gz
volse-hubzilla-92f3c5ae2191dbffcc327dd1068e692467dc24dd.tar.bz2
volse-hubzilla-92f3c5ae2191dbffcc327dd1068e692467dc24dd.zip
backward compatibility with recent crypto changes
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php
index 84bf3f9b2..634561fa3 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1131,6 +1131,7 @@ function zot_process_response($hub, $arr, $outq) {
if(is_array($x) && array_key_exists('delivery_report',$x) && is_array($x['delivery_report'])) {
if(array_key_exists('iv',$x['delivery_report'])) {
+ $x['delivery_report']['encrypted'] = true;
$j = Crypto::unencapsulate($x['delivery_report'],get_config('system','prvkey'));
if($j) {
$x['delivery_report'] = json_decode($j,true);
@@ -1317,6 +1318,7 @@ function zot_import($arr, $sender_url) {
}
if(array_key_exists('iv', $data)) {
+ $data['encrypted'] = true;
$data = json_decode(Crypto::unencapsulate($data,get_config('system','prvkey')),true);
}
@@ -1345,6 +1347,7 @@ function zot_import($arr, $sender_url) {
$result = null;
if(array_key_exists('iv',$i['notify'])) {
+ $i['notify']['encrypted'] = true;
$i['notify'] = json_decode(Crypto::unencapsulate($i['notify'],get_config('system','prvkey')),true);
}