fix build

This commit is contained in:
2024-11-16 14:53:04 +03:00
parent d90c3f0991
commit fe82c12d5b

View File

@@ -20,17 +20,15 @@
#include "picrypt.h"
#include "pitranslator.h"
#ifdef PIP_CRYPT
#include <sodium.h>
#define PICRYPT_DISABLED_WARNING \
piCout << "[PICrypt]" \
<< "Warning: PICrypt is disabled, to enable install sodium library and rebuild pip"_tr("PICrypt");
namespace {
constexpr char hash_def_key[] = "_picrypt_\0\0\0\0\0\0\0";
constexpr int hash_def_key_size = 9;
} // namespace
PICrypt::PICrypt() {
if (!init()) {
piCout << "[PICrypt]"