mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
38 lines
980 B
C++
38 lines
980 B
C++
#include "Crypto/mnemonic.h"
|
|
#include "Crypto/Obfus_array.h"
|
|
#include "Poco/Util/LayeredConfiguration.h"
|
|
#include "Poco/Net/Context.h"
|
|
|
|
#include "tasks/CPUSheduler.h"
|
|
|
|
namespace ServerConfig {
|
|
|
|
enum Mnemonic_Types {
|
|
MNEMONIC_GRADIDO_BOOK_GERMAN_RANDOM_ORDER,
|
|
MNEMONIC_BIP0039_SORTED_ORDER,
|
|
MNEMONIC_MAX
|
|
};
|
|
|
|
struct EmailAccount {
|
|
std::string sender;
|
|
std::string username;
|
|
std::string password;
|
|
std::string url;
|
|
int port;
|
|
};
|
|
|
|
extern Mnemonic g_Mnemonic_WordLists[MNEMONIC_MAX];
|
|
extern ObfusArray* g_ServerCryptoKey;
|
|
//extern unsigned char g_ServerAdminPublic[];
|
|
extern UniLib::controller::CPUSheduler* g_CPUScheduler;
|
|
extern Poco::Net::Context::Ptr g_SSL_CLient_Context;
|
|
extern EmailAccount g_EmailAccount;
|
|
extern int g_SessionTimeout;
|
|
|
|
bool loadMnemonicWordLists();
|
|
bool initServerCrypto(const Poco::Util::LayeredConfiguration& cfg);
|
|
bool initEMailAccount(const Poco::Util::LayeredConfiguration& cfg);
|
|
bool initSSLClientContext();
|
|
|
|
void unload();
|
|
}; |