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