diff options
-rw-r--r-- | Zotlabs/Web/HTTPSig.php | 2 | ||||
-rw-r--r-- | include/queue_fn.php | 4 | ||||
-rw-r--r-- | include/zot.php | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/Zotlabs/Web/HTTPSig.php b/Zotlabs/Web/HTTPSig.php index 8c94a4ff0..dba5c4687 100644 --- a/Zotlabs/Web/HTTPSig.php +++ b/Zotlabs/Web/HTTPSig.php @@ -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)); diff --git a/include/queue_fn.php b/include/queue_fn.php index e50d58dd7..798ac36db 100644 --- a/include/queue_fn.php +++ b/include/queue_fn.php @@ -237,10 +237,6 @@ function queue_deliver($outq, $immediate = false) { } } - - - - $msg = $outq['outq_notify']; $result = zot_zot($outq['outq_posturl'],$msg,$channel,$host_crypto); diff --git a/include/zot.php b/include/zot.php index c00caebb4..16b0a1c8e 100644 --- a/include/zot.php +++ b/include/zot.php @@ -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); |