Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorFelix Geyer <debfx@fobos.de>2014-06-15 13:17:40 +0400
committerFelix Geyer <debfx@fobos.de>2014-06-15 13:17:40 +0400
commit0d6117bf4c0ac1e604c5b2fa0dcf8d5d47c46a58 (patch)
treecb3421a2438fc659ffe91b31a1170832f0dbf7f0 /utils
parentb417bf91873ae760031cdc821d4e411701da71f5 (diff)
Do some basic self-checks when initializing the crypto backend.
Diffstat (limited to 'utils')
-rw-r--r--utils/kdbx-extract.cpp4
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))) {