From 517d67b2e0a164c317ef4af14d75766796406b1a Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 5 Jan 2024 20:16:13 +0000 Subject: add check for sodium on setup --- Zotlabs/Module/Setup.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Zotlabs/Module/Setup.php b/Zotlabs/Module/Setup.php index 3a188d9ce..72646c8ba 100644 --- a/Zotlabs/Module/Setup.php +++ b/Zotlabs/Module/Setup.php @@ -491,6 +491,12 @@ class Setup extends \Zotlabs\Web\Controller { } $this->check_add($checks, t('Generate encryption keys'), $res, true, $help); + + $res = function_exists('sodium_crypto_sign_keypair'); + if (!$res) { + $help = t('Error: the sodium encryption library is not installed.') . EOL; + } + $this->check_add($checks, t('Generate ed25519 encryption keys'), $res, true, $help); } /** -- cgit v1.2.3