aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Crypto.php
diff options
context:
space:
mode:
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) {