diff options
author | Felix Geyer <debfx@fobos.de> | 2014-06-15 13:17:40 +0400 |
---|---|---|
committer | Felix Geyer <debfx@fobos.de> | 2014-06-15 13:17:40 +0400 |
commit | 0d6117bf4c0ac1e604c5b2fa0dcf8d5d47c46a58 (patch) | |
tree | cb3421a2438fc659ffe91b31a1170832f0dbf7f0 /src/crypto/Crypto.h | |
parent | b417bf91873ae760031cdc821d4e411701da71f5 (diff) |
Do some basic self-checks when initializing the crypto backend.
Diffstat (limited to 'src/crypto/Crypto.h')
-rw-r--r-- | src/crypto/Crypto.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/crypto/Crypto.h b/src/crypto/Crypto.h index 63f117771..9926f14b2 100644 --- a/src/crypto/Crypto.h +++ b/src/crypto/Crypto.h @@ -18,18 +18,25 @@ #ifndef KEEPASSX_CRYPTO_H #define KEEPASSX_CRYPTO_H +#include <QString> + #include "core/Global.h" class Crypto { public: - static void init(); + static bool init(); static bool initalized(); - static bool selfTest(); + static bool backendSelfTest(); + static QString errorString(); private: Crypto(); + static bool checkAlgorithms(); + static bool selfTest(); + static bool m_initalized; + static QString m_errorStr; }; #endif // KEEPASSX_CRYPTO_H |