Mercurial > trustbridge
diff ui/tests/certlistparsertest.cpp @ 31:37fc66967517
Implement signature verification wiht polarssl
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Thu, 13 Mar 2014 18:12:16 +0000 |
parents | cbd57d767dfa |
children | 6e7ef7e95031 |
line wrap: on
line diff
--- a/ui/tests/certlistparsertest.cpp Thu Mar 13 17:26:33 2014 +0000 +++ b/ui/tests/certlistparsertest.cpp Thu Mar 13 18:12:16 2014 +0000 @@ -3,6 +3,15 @@ #include <QDebug> +void CertListTest::testValidList() +{ + const char *fname = "list-valid-signed.txt"; + CertificateList *certList = testWithFile(fname); + printf("Status :%i\n ",certList->getStatus()); + QCOMPARE (certList->getStatus(), Valid); + QVERIFY (certList->isValid()); + delete certList; +} void CertListTest::testInvalidSig() { @@ -44,15 +53,6 @@ delete certList; } -void CertListTest::testValidList() -{ - const char *fname = "list-valid-signed.txt"; - CertificateList *certList = testWithFile(fname); - QCOMPARE (certList->getStatus(), Valid); - QVERIFY (certList->isValid()); - delete certList; -} - void CertListTest::benchmarkValid() { const char *fname = "list-valid-signed.txt";