Fix warnings about Crypto already having been initialized

This commit is contained in:
Janek Bevendorff 2017-02-24 21:00:48 +01:00
parent 9a94c6d85e
commit a001553c5e
No known key found for this signature in database
GPG Key ID: CFEC2F6850BFFA53

View File

@ -30,6 +30,9 @@ void TestYubiKeyChalResp::initTestCase()
{
m_detected = 0;
m_key = NULL;
// crypto subsystem needs to be initialized for YubiKey testing
QVERIFY(Crypto::init());
}
void TestYubiKeyChalResp::cleanupTestCase()
@ -45,9 +48,6 @@ void TestYubiKeyChalResp::init()
if (!result) {
QSKIP("Unable to connect to YubiKey", SkipAll);
}
// crypto subsystem needs to be initialized for YubiKey testing
QVERIFY(Crypto::init());
}
void TestYubiKeyChalResp::detectDevices()