Merge remote-tracking branch 'mike/master' into dev
This commit is contained in:
commit
85a6dd6031
@ -651,7 +651,7 @@ class Notifier {
|
|||||||
$packet = zot6_build_packet($channel,'notify',$env, json_encode($encoded_item), (($private) ? $hub['hubloc_sitekey'] : null), $hub['site_crypto'],$hash);
|
$packet = zot6_build_packet($channel,'notify',$env, json_encode($encoded_item), (($private) ? $hub['hubloc_sitekey'] : null), $hub['site_crypto'],$hash);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$packet = zot6_build_packet($channel,'notify',$env, (($private) ? $hub['hubloc_sitekey'] : null), $hub['site_crypto'],$hash);
|
$packet = zot_build_packet($channel,'notify',$env, (($private) ? $hub['hubloc_sitekey'] : null), $hub['site_crypto'],$hash);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ function other_encapsulate($data,$pubkey,$alg) {
|
|||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$x = [ 'data' => $data, 'pubkey' => $pubkey, 'alg' => $subalg, 'result' => $data ];
|
$x = [ 'data' => $data, 'pubkey' => $pubkey, 'alg' => $alg, 'result' => $data ];
|
||||||
call_hooks('other_encapsulate', $x);
|
call_hooks('other_encapsulate', $x);
|
||||||
return $x['result'];
|
return $x['result'];
|
||||||
}
|
}
|
||||||
@ -246,7 +246,7 @@ function other_unencapsulate($data,$prvkey,$alg) {
|
|||||||
return $fn(base64url_decode($data['data']),$k,$i);
|
return $fn(base64url_decode($data['data']),$k,$i);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$x = [ 'data' => $data, 'prvkey' => $prvkey, 'alg' => $subalg, 'result' => $data ];
|
$x = [ 'data' => $data, 'prvkey' => $prvkey, 'alg' => $alg, 'result' => $data ];
|
||||||
call_hooks('other_unencapsulate',$x);
|
call_hooks('other_unencapsulate',$x);
|
||||||
return $x['result'];
|
return $x['result'];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user