Add missing crypto init to OpenSSHKey test

This commit is contained in:
Toni Spets 2017-11-25 11:31:31 +02:00
parent bff80dfc70
commit a0bfa710be
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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();