aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-08-23 02:45:21 -0700
committerfriendica <info@friendica.com>2014-08-23 02:45:21 -0700
commit5d2dc4e8fdb62785cf306496c7cdcefb31d4a0ed (patch)
tree74c8a8635ca9aeaf86e48d33b6b86fdf39b3627f /include/items.php
parent9196c9eef091e7f4a41fbc9452521d6ca2de55a3 (diff)
downloadvolse-hubzilla-5d2dc4e8fdb62785cf306496c7cdcefb31d4a0ed.tar.gz
volse-hubzilla-5d2dc4e8fdb62785cf306496c7cdcefb31d4a0ed.tar.bz2
volse-hubzilla-5d2dc4e8fdb62785cf306496c7cdcefb31d4a0ed.zip
switch everything over to crypto_encapsulate()
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/items.php b/include/items.php
index 1f2b33579..bdf4007af 100755
--- a/include/items.php
+++ b/include/items.php
@@ -318,9 +318,9 @@ function post_activity_item($arr) {
$key = get_config('system','pubkey');
$arr['item_flags'] = $arr['item_flags'] | ITEM_OBSCURED;
if($arr['title'])
- $arr['title'] = json_encode(aes_encapsulate($arr['title'],$key));
+ $arr['title'] = json_encode(crypto_encapsulate($arr['title'],$key));
if($arr['body'])
- $arr['body'] = json_encode(aes_encapsulate($arr['body'],$key));
+ $arr['body'] = json_encode(crypto_encapsulate($arr['body'],$key));
}
$arr['mid'] = ((x($arr,'mid')) ? $arr['mid'] : item_message_id());
@@ -2713,9 +2713,9 @@ function start_delivery_chain($channel,$item,$item_id,$parent) {
$key = get_config('system','pubkey');
$flag_bits = $flag_bits|ITEM_OBSCURED;
if($title)
- $title = json_encode(aes_encapsulate($title,$key));
+ $title = json_encode(crypto_encapsulate($title,$key));
if($body)
- $body = json_encode(aes_encapsulate($body,$key));
+ $body = json_encode(crypto_encapsulate($body,$key));
}
}
else {