z6 testing
This commit is contained in:
parent
4c27fa5c37
commit
635c5e532b
@ -209,7 +209,7 @@ class HTTPSig {
|
||||
. '",headers="' . $x['headers'] . '",signature="' . $x['signature'] . '"';
|
||||
|
||||
if($crypt_key) {
|
||||
$x = crypto_encapsulate($headerval,$crypt_key,$crypt_alg);
|
||||
$x = crypto_encapsulate($headerval,$crypt_key,$crypt_algo);
|
||||
|
||||
logger(cryptosig: ' . print_r($x,true));
|
||||
|
||||
|
@ -237,10 +237,6 @@ function queue_deliver($outq, $immediate = false) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$msg = $outq['outq_notify'];
|
||||
|
||||
$result = zot_zot($outq['outq_posturl'],$msg,$channel,$host_crypto);
|
||||
|
@ -296,6 +296,8 @@ function zot_zot($url, $data, $channel = null,$crypto = null) {
|
||||
|
||||
$headers = [];
|
||||
|
||||
logger('crypto: ' . print_r($crypto,true));
|
||||
|
||||
if($channel) {
|
||||
$headers['X-Zot-Token'] = random_string();
|
||||
$hash = \Zotlabs\Web\HTTPSig::generate_digest($data,false);
|
||||
|
Reference in New Issue
Block a user