aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Web
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-13 20:40:01 -0700
committerzotlabs <mike@macgirvin.com>2017-09-13 20:40:01 -0700
commitb5966041be46ab7a16dc1ee93b5a07c5461bc73c (patch)
tree123300e5f27d653074bee3fb4c8a859500e78042 /Zotlabs/Web
parent62d6bada4c80a45e7e06f5dd1de599a5d039da76 (diff)
downloadvolse-hubzilla-b5966041be46ab7a16dc1ee93b5a07c5461bc73c.tar.gz
volse-hubzilla-b5966041be46ab7a16dc1ee93b5a07c5461bc73c.tar.bz2
volse-hubzilla-b5966041be46ab7a16dc1ee93b5a07c5461bc73c.zip
more zot6
Diffstat (limited to 'Zotlabs/Web')
-rw-r--r--Zotlabs/Web/HTTPSig.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/Zotlabs/Web/HTTPSig.php b/Zotlabs/Web/HTTPSig.php
index fee8aaa41..6526fa7c8 100644
--- a/Zotlabs/Web/HTTPSig.php
+++ b/Zotlabs/Web/HTTPSig.php
@@ -95,13 +95,18 @@ class HTTPSig {
$algorithm = 'sha512';
}
+ if($key && function_exists($key)) {
+ $result['signer'] = $sig_block['keyId'];
+ $key = $key($sig_block['keyId']);
+ }
+
if(! $key) {
$result['signer'] = $sig_block['keyId'];
$key = self::get_activitypub_key($sig_block['keyId']);
}
if(! $key)
- return null;
+ return $result;
$x = rsa_verify($signed_data,$sig_block['signature'],$key,$algorithm);