From 591349ee7493ad09690900ecd0274ab02809c009 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 20 Mar 2022 08:58:18 +0000 Subject: add the signing algo to zotinfo, and store it in import_xchan() if present --- Zotlabs/Lib/Crypto.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Zotlabs/Lib/Crypto.php') 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) { -- cgit v1.2.3