aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Crypto.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-03-20 08:58:18 +0000
committerMario <mario@mariovavti.com>2022-03-20 08:58:18 +0000
commit591349ee7493ad09690900ecd0274ab02809c009 (patch)
tree4bd588e92ad72b0c3df3a63d7d2a817108601d98 /Zotlabs/Lib/Crypto.php
parent1beadfc6e769cfe21d6c3d6c13f7db29210e40fb (diff)
downloadvolse-hubzilla-591349ee7493ad09690900ecd0274ab02809c009.tar.gz
volse-hubzilla-591349ee7493ad09690900ecd0274ab02809c009.tar.bz2
volse-hubzilla-591349ee7493ad09690900ecd0274ab02809c009.zip
add the signing algo to zotinfo, and store it in import_xchan() if present
Diffstat (limited to 'Zotlabs/Lib/Crypto.php')
-rw-r--r--Zotlabs/Lib/Crypto.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Crypto.php b/Zotlabs/Lib/Crypto.php
index f1794ae64..188c6bd81 100644
--- a/Zotlabs/Lib/Crypto.php
+++ b/Zotlabs/Lib/Crypto.php
@@ -87,6 +87,10 @@ class Crypto {
return false;
}
+ if (!$alg) {
+ $alg = 'sha256';
+ }
+
try {
$verify = openssl_verify($data, $sig, $key, $alg);
} catch (Exception $e) {