diff options
author | friendica <info@friendica.com> | 2013-11-20 15:20:12 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-11-20 15:20:12 -0800 |
commit | d7ee552c570f4fca760c3d1573f32c005cf73bb8 (patch) | |
tree | a5020a1a27472fe889d773a5e4e2b410930ceda7 /include/text.php | |
parent | f6c41e61ace7260dde49125487f9ec7142f48e4f (diff) | |
download | volse-hubzilla-d7ee552c570f4fca760c3d1573f32c005cf73bb8.tar.gz volse-hubzilla-d7ee552c570f4fca760c3d1573f32c005cf73bb8.tar.bz2 volse-hubzilla-d7ee552c570f4fca760c3d1573f32c005cf73bb8.zip |
Protocol: now set data['alg'] on all encapsulated encrypted packets, so that we can more easily retire 'aes256cbc' once it is no longer viable.
Diffstat (limited to 'include/text.php')
-rwxr-xr-x | include/text.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php index fc70e3509..780992f4a 100755 --- a/include/text.php +++ b/include/text.php @@ -1010,9 +1010,9 @@ function unobscure(&$item) { if(array_key_exists('item_flags',$item) && ($item['item_flags'] & ITEM_OBSCURED)) { $key = get_config('system','prvkey'); if($item['title']) - $item['title'] = aes_unencapsulate(json_decode_plus($item['title']),$key); + $item['title'] = crypto_unencapsulate(json_decode_plus($item['title']),$key); if($item['body']) - $item['body'] = aes_unencapsulate(json_decode_plus($item['body']),$key); + $item['body'] = crypto_unencapsulate(json_decode_plus($item['body']),$key); } } |