zot6 testing

This commit is contained in:
zotlabs
2018-02-08 16:22:10 -08:00
parent beec49847f
commit cd1e5d4171
2 changed files with 9 additions and 10 deletions

View File

@@ -152,7 +152,7 @@ class HTTPSig {
}
}
logger('Content_Valid: ' . $result['content_valid']);
logger('Content_Valid: ' . (($result['content_valid']) ? 'true' : 'false'));
return $result;
@@ -194,8 +194,6 @@ class HTTPSig {
static function create_sig($request,$head,$prvkey,$keyid = 'Key',$send_headers = false,$auth = false,$alg = 'sha256',
$crypt_key = null, $crypt_algo = 'aes256ctr') {
logger('cryptkey' . $crypt_key);
$return_headers = [];
if($alg === 'sha256') {
@@ -212,9 +210,6 @@ logger('cryptkey' . $crypt_key);
if($crypt_key) {
$x = crypto_encapsulate($headerval,$crypt_key,$crypt_algo);
logger('cryptosig: ' . print_r($x,true));
$headerval = 'iv="' . $x['iv'] . '",key="' . $x['key'] . '",alg="' . $x['alg'] . '",data="' . $x['data'] . '"';
}