diff options
author | Kyle Manna <kyle@kylemanna.com> | 2017-01-15 04:58:05 +0300 |
---|---|---|
committer | Kyle Manna <kyle@kylemanna.com> | 2017-01-15 04:58:05 +0300 |
commit | 5a3ed27fedd5668bab0b9ffab7a815d1c112884e (patch) | |
tree | 3fbe6dc37d8b1a9b18651e1c75bd89b0501c661a /tests/TestYkChallengeResponseKey.cpp | |
parent | a7cf39c7cd07fd27eb3d521403ad92d69ef4cf74 (diff) |
tests: yk: Initialize Crypto class
Initialize the Crypto class before running the tests as YubiKey
detection code depends on it for random data.
Diffstat (limited to 'tests/TestYkChallengeResponseKey.cpp')
-rw-r--r-- | tests/TestYkChallengeResponseKey.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/TestYkChallengeResponseKey.cpp b/tests/TestYkChallengeResponseKey.cpp index 91fba83cb..bd58ac018 100644 --- a/tests/TestYkChallengeResponseKey.cpp +++ b/tests/TestYkChallengeResponseKey.cpp @@ -21,6 +21,7 @@ #include <QTest> #include <QtConcurrentRun> +#include "crypto/Crypto.h" #include "keys/YkChallengeResponseKey.h" QTEST_GUILESS_MAIN(TestYubiKeyChalResp) @@ -44,6 +45,9 @@ void TestYubiKeyChalResp::init() if (!result) { QSKIP("Unable to connect to YubiKey", SkipAll); } + + /* Crypto subsystem needs to be initalized for YubiKey testing */ + QVERIFY(Crypto::init()); } void TestYubiKeyChalResp::detectDevices() |