diff options
author | Mario <mario@mariovavti.com> | 2024-01-05 20:16:13 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-01-05 20:16:13 +0000 |
commit | 517d67b2e0a164c317ef4af14d75766796406b1a (patch) | |
tree | 5dd4fa78cdf8d3f2cdb206281ada6a1b91f383b7 | |
parent | e95b7ca3a0a4900690cd79d39c70eba7308c348d (diff) | |
download | volse-hubzilla-517d67b2e0a164c317ef4af14d75766796406b1a.tar.gz volse-hubzilla-517d67b2e0a164c317ef4af14d75766796406b1a.tar.bz2 volse-hubzilla-517d67b2e0a164c317ef4af14d75766796406b1a.zip |
add check for sodium on setup
-rw-r--r-- | Zotlabs/Module/Setup.php | 6 |
1 files changed, 6 insertions, 0 deletions
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); } /** |