diff ui/certificatelist.cpp @ 21:dc1e1e9e62ce

Add certificate class and use it
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 20 Feb 2014 10:58:28 +0000
parents 2ad9a96518e3
children 37fc66967517
line wrap: on
line diff
--- a/ui/certificatelist.cpp	Thu Feb 20 10:57:20 2014 +0000
+++ b/ui/certificatelist.cpp	Thu Feb 20 10:58:28 2014 +0000
@@ -43,9 +43,11 @@
 
             mDate = QDateTime::fromMSecsSinceEpoch(timestamp * 1000);
         } else if (curLine.startsWith("I:")) {
-            mCertificatesInstall << QByteArray::fromBase64(curLine.remove(0,2).toLatin1());
+            mCertificatesInstall << Certificate(
+                    QByteArray::fromBase64(curLine.remove(0,2).toLatin1()));
         } else if (curLine.startsWith("R:")) {
-            mCertificatesInstall << QByteArray::fromBase64(curLine.remove(0,2).toLatin1());
+            mCertificatesInstall << Certificate(
+                    QByteArray::fromBase64(curLine.remove(0,2).toLatin1()));
         } else if (curLine.startsWith("S:")) {
             // Signature is verified in readAndVerifyList
             continue;

http://wald.intevation.org/projects/trustbridge/