aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/LDSignatures.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-11 18:56:17 -0700
committerzotlabs <mike@macgirvin.com>2017-09-11 18:56:17 -0700
commitd4e53bb86fbeff0dd0b4f069f4fa07993ddf9e65 (patch)
tree158e807c244b3e153afbaaaeb328cce604a870c3 /Zotlabs/Lib/LDSignatures.php
parent471449f539a29fcd8a181aca70510f222b172261 (diff)
downloadvolse-hubzilla-d4e53bb86fbeff0dd0b4f069f4fa07993ddf9e65.tar.gz
volse-hubzilla-d4e53bb86fbeff0dd0b4f069f4fa07993ddf9e65.tar.bz2
volse-hubzilla-d4e53bb86fbeff0dd0b4f069f4fa07993ddf9e65.zip
typo in ldsigs
Diffstat (limited to 'Zotlabs/Lib/LDSignatures.php')
-rw-r--r--Zotlabs/Lib/LDSignatures.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Lib/LDSignatures.php b/Zotlabs/Lib/LDSignatures.php
index 88dfe80c0..7d468782a 100644
--- a/Zotlabs/Lib/LDSignatures.php
+++ b/Zotlabs/Lib/LDSignatures.php
@@ -21,6 +21,7 @@ class LDSignatures {
}
static function sign($data,$channel) {
+
$options = [
'type' => 'RsaSignature2017',
'nonce' => random_string(64),
@@ -46,7 +47,7 @@ class LDSignatures {
if($data) {
foreach($data as $k => $v) {
if(! in_array($k,[ 'signature' ])) {
- $newopts[$k] = $v;
+ $newdata[$k] = $v;
}
}
}
@@ -68,6 +69,7 @@ class LDSignatures {
}
static function hash($obj) {
+
return hash('sha256',self::normalise($obj));
}