zot_site_info - always sign the site block with the site private key
This commit is contained in:
parent
741af8c164
commit
66334374af
@ -4183,7 +4183,7 @@ function zotinfo($arr) {
|
|||||||
if($x)
|
if($x)
|
||||||
$ret['locations'] = $x;
|
$ret['locations'] = $x;
|
||||||
|
|
||||||
$ret['site'] = zot_site_info($e);
|
$ret['site'] = zot_site_info();
|
||||||
|
|
||||||
|
|
||||||
check_zotinfo($e,$x,$ret);
|
check_zotinfo($e,$x,$ret);
|
||||||
@ -4195,9 +4195,9 @@ function zotinfo($arr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function zot_site_info($channel = null) {
|
function zot_site_info() {
|
||||||
|
|
||||||
$signing_key = (($channel) ? $channel['channel_prvkey'] : get_config('system','prvkey'));
|
$signing_key = get_config('system','prvkey');
|
||||||
$sig_method = get_config('system','signature_algorithm','sha256');
|
$sig_method = get_config('system','signature_algorithm','sha256');
|
||||||
|
|
||||||
$ret = [];
|
$ret = [];
|
||||||
|
Reference in New Issue
Block a user