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 /utils | |
parent | b417bf91873ae760031cdc821d4e411701da71f5 (diff) |
Do some basic self-checks when initializing the crypto backend.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/kdbx-extract.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/kdbx-extract.cpp b/utils/kdbx-extract.cpp index beee71dc3..f5d2a19a6 100644 --- a/utils/kdbx-extract.cpp +++ b/utils/kdbx-extract.cpp @@ -38,7 +38,9 @@ int main(int argc, char **argv) return 1; } - Crypto::init(); + if (!Crypto::init()) { + qFatal("Fatal error while testing the cryptographic functions:\n%s", qPrintable(Crypto::errorString())); + } CompositeKey key; if (QFile::exists(app.arguments().at(1))) { |