aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
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
parent62d6bada4c80a45e7e06f5dd1de599a5d039da76 (diff)
downloadvolse-hubzilla-b5966041be46ab7a16dc1ee93b5a07c5461bc73c.tar.gz
volse-hubzilla-b5966041be46ab7a16dc1ee93b5a07c5461bc73c.tar.bz2
volse-hubzilla-b5966041be46ab7a16dc1ee93b5a07c5461bc73c.zip
more zot6
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Post.php9
-rw-r--r--Zotlabs/Web/HTTPSig.php7
2 files changed, 14 insertions, 2 deletions
diff --git a/Zotlabs/Module/Post.php b/Zotlabs/Module/Post.php
index c78484a45..dba26075f 100644
--- a/Zotlabs/Module/Post.php
+++ b/Zotlabs/Module/Post.php
@@ -19,12 +19,19 @@ class Post extends \Zotlabs\Web\Controller {
function init() {
if(array_key_exists('auth', $_REQUEST)) {
$x = new \Zotlabs\Zot\Auth($_REQUEST);
-
exit;
}
}
function post() {
+
+
+
+
+
+
+
+
$z = new \Zotlabs\Zot\Receiver($_REQUEST['data'], get_config('system', 'prvkey'), new \Zotlabs\Zot\ZotHandler());
// notreached;
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);