mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-22 20:51:23 -05:00
Add missing crypto init to OpenSSHKey test
This commit is contained in:
parent
bff80dfc70
commit
a0bfa710be
@ -16,11 +16,17 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "TestOpenSSHKey.h"
|
#include "TestOpenSSHKey.h"
|
||||||
|
#include "crypto/Crypto.h"
|
||||||
#include "sshagent/OpenSSHKey.h"
|
#include "sshagent/OpenSSHKey.h"
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
QTEST_GUILESS_MAIN(TestOpenSSHKey)
|
QTEST_GUILESS_MAIN(TestOpenSSHKey)
|
||||||
|
|
||||||
|
void TestOpenSSHKey::initTestCase()
|
||||||
|
{
|
||||||
|
QVERIFY(Crypto::init());
|
||||||
|
}
|
||||||
|
|
||||||
void TestOpenSSHKey::testParse()
|
void TestOpenSSHKey::testParse()
|
||||||
{
|
{
|
||||||
// mixed line endings and missing ones are intentional, we only require 3 lines total
|
// mixed line endings and missing ones are intentional, we only require 3 lines total
|
||||||
|
@ -27,6 +27,7 @@ class TestOpenSSHKey : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
void initTestCase();
|
||||||
void testParse();
|
void testParse();
|
||||||
void testDecryptAES256CBC();
|
void testDecryptAES256CBC();
|
||||||
void testDecryptAES256CTR();
|
void testDecryptAES256CTR();
|
||||||
|
Loading…
Reference in New Issue
Block a user