more zot6

This commit is contained in:
zotlabs
2017-09-13 20:40:01 -07:00
parent 62d6bada4c
commit b5966041be
4 changed files with 26 additions and 6 deletions

View File

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