diff options
author | Max Kostikov <max@kostikov.co> | 2019-08-14 16:35:55 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-08-14 16:35:55 +0200 |
commit | b325b2c003ae73c8c9869d35b15444fe9a17fd74 (patch) | |
tree | f56cff944a2bd4607a4cfe83da7af5be2474a612 /include | |
parent | 7200c2ac0cc203a2717cd94be7ae5c02316747ab (diff) | |
parent | feda23587c7e24dec0cfc8be9f2f444e009f967f (diff) | |
download | volse-hubzilla-b325b2c003ae73c8c9869d35b15444fe9a17fd74.tar.gz volse-hubzilla-b325b2c003ae73c8c9869d35b15444fe9a17fd74.tar.bz2 volse-hubzilla-b325b2c003ae73c8c9869d35b15444fe9a17fd74.zip |
Merge branch 'dev' into 'dev'
illegal offset warning (prevents encrypted signatures from being used for...
See merge request hubzilla/core!1709
Diffstat (limited to 'include')
-rw-r--r-- | include/zot.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php index 53c3d4d86..60bada1d6 100644 --- a/include/zot.php +++ b/include/zot.php @@ -304,7 +304,7 @@ function zot_zot($url, $data, $channel = null,$crypto = null) { if($channel) { $headers['X-Zot-Token'] = random_string(); $headers['X-Zot-Digest'] = \Zotlabs\Web\HTTPSig::generate_digest_header($data); - $h = \Zotlabs\Web\HTTPSig::create_sig($headers,$channel['channel_prvkey'],'acct:' . channel_reddress($channel),false,'sha512',(($crypto) ? $crypto['hubloc_sitekey'] : ''), (($crypto) ? zot_best_algorithm($crypto['site_crypto']) : '')); + $h = \Zotlabs\Web\HTTPSig::create_sig($headers,$channel['channel_prvkey'],'acct:' . channel_reddress($channel),false,'sha512',(($crypto) ? [ 'key' => $crypto['hubloc_sitekey'], 'algorithm' => $crypto['site_crypto'] ] : false)); } $redirects = 0; |