mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-22 20:51:23 -05: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
@ -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…
Reference in New Issue
Block a user