z6 testing

This commit is contained in:
zotlabs 2018-02-08 15:32:54 -08:00
parent 4c27fa5c37
commit 635c5e532b
3 changed files with 3 additions and 5 deletions

View File

@ -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));

View File

@ -237,10 +237,6 @@ function queue_deliver($outq, $immediate = false) {
}
}
$msg = $outq['outq_notify'];
$result = zot_zot($outq['outq_posturl'],$msg,$channel,$host_crypto);

View File

@ -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);