aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-11-21 14:38:02 -0800
committerzotlabs <mike@macgirvin.com>2016-11-21 14:38:02 -0800
commitbc95b2fc77678be44a9ef4cafb440fe475d9f18a (patch)
treed73efa077ab9d0c3cf0b6f4fdc3e60bb1f19ec15
parentf926915e5622cc0e1d67feb609f9b70ea9eead1f (diff)
downloadvolse-hubzilla-bc95b2fc77678be44a9ef4cafb440fe475d9f18a.tar.gz
volse-hubzilla-bc95b2fc77678be44a9ef4cafb440fe475d9f18a.tar.bz2
volse-hubzilla-bc95b2fc77678be44a9ef4cafb440fe475d9f18a.zip
wrong function
-rw-r--r--include/zot.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/zot.php b/include/zot.php
index 792d4b688..5038e44d9 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -398,9 +398,9 @@ function zot_refresh($them, $channel = null, $force = false) {
$permissions = crypto_unencapsulate(array(
'data' => $j['permissions']['data'],
'key' => $j['permissions']['key'],
- 'iv' => $j['permissions']['iv']),
- $channel['channel_prvkey'],
- CRYPTO_ALGORITHM );
+ 'iv' => $j['permissions']['iv'],
+ 'alg' => $j['permissions']['alg']),
+ $channel['channel_prvkey']);
if($permissions)
$permissions = json_decode($permissions,true);
logger('decrypted permissions: ' . print_r($permissions,true), LOGGER_DATA, LOG_DEBUG);