mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-06 13:34:16 -04:00
tests: yk: Initialize Crypto class
Initialize the Crypto class before running the tests as YubiKey detection code depends on it for random data.
This commit is contained in:
parent
a7cf39c7cd
commit
5a3ed27fed
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue