aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-21 23:37:13 -0700
committerzotlabs <mike@macgirvin.com>2017-09-21 23:37:13 -0700
commit3456c192feeab9495693e2cbdcff16fe99bff932 (patch)
tree27fa0ae14133ee25e1773996daad2ea496046996 /Zotlabs
parentae5a1362a7ea864cafc2ecc652863eeb9939742c (diff)
downloadvolse-hubzilla-3456c192feeab9495693e2cbdcff16fe99bff932.tar.gz
volse-hubzilla-3456c192feeab9495693e2cbdcff16fe99bff932.tar.bz2
volse-hubzilla-3456c192feeab9495693e2cbdcff16fe99bff932.zip
encrypt delivery reports. This will cause a bit of consternation because this is not backward compatible and older sites will see some incorrect delivery reports from newer sites until the next upgrade; as their systems will not know how to read the ecnrypted final reports.
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Daemon/Deliver.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zotlabs/Daemon/Deliver.php b/Zotlabs/Daemon/Deliver.php
index 7c1ff717f..39c9ffdb1 100644
--- a/Zotlabs/Daemon/Deliver.php
+++ b/Zotlabs/Daemon/Deliver.php
@@ -53,6 +53,7 @@ class Deliver {
remove_queue_item($r[0]['outq_hash']);
if($dresult && is_array($dresult)) {
+
if(array_key_exists('iv',$dresult)) {
$dresult = json_decode(crypto_unencapsulate($dresult,get_config('system','prvkey')),true);
}