aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/LDSignatures.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-20 21:20:00 -0700
committerzotlabs <mike@macgirvin.com>2017-09-20 21:20:00 -0700
commit24a9c3ba79cc7639a9cc6082c13dfedbc989bc8d (patch)
tree5479aaf0310fe44dbc2f10ddf1f7db1c8704aeff /Zotlabs/Lib/LDSignatures.php
parentc4261b9c4b234cd3b2f377160c38a3aac5186690 (diff)
downloadvolse-hubzilla-24a9c3ba79cc7639a9cc6082c13dfedbc989bc8d.tar.gz
volse-hubzilla-24a9c3ba79cc7639a9cc6082c13dfedbc989bc8d.tar.bz2
volse-hubzilla-24a9c3ba79cc7639a9cc6082c13dfedbc989bc8d.zip
add more signature logging
Diffstat (limited to 'Zotlabs/Lib/LDSignatures.php')
-rw-r--r--Zotlabs/Lib/LDSignatures.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Lib/LDSignatures.php b/Zotlabs/Lib/LDSignatures.php
index 31ffd71f1..d500799c0 100644
--- a/Zotlabs/Lib/LDSignatures.php
+++ b/Zotlabs/Lib/LDSignatures.php
@@ -12,7 +12,10 @@ class LDSignatures {
$ohash = self::hash(self::signable_options($data['signature']));
$dhash = self::hash(self::signable_data($data));
- return rsa_verify($ohash . $dhash,base64_decode($data['signature']['signatureValue']), $pubkey);
+ $x = rsa_verify($ohash . $dhash,base64_decode($data['signature']['signatureValue']), $pubkey);
+ logger('LD-verify: ' . intval($x));
+
+ return $x;
}
static function dopplesign(&$data,$channel) {