comparison ui/certificatelist.cpp @ 7:992c0ec57660

Add unit tests make CertificateList work.
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 12 Feb 2014 16:52:27 +0000
parents 9849250f50f2
children 2ad9a96518e3
comparison
equal deleted inserted replaced
6:1f6455d46b30 7:992c0ec57660
1 #include "certificatelist.h" 1 #include "certificatelist.h"
2 2
3 CertificateList::CertificateList(char *fileName) 3 #include <QDebug>
4
5 CertificateList::CertificateList(const char *fileName)
4 { 6 {
5 void *data = NULL; 7 char *data = NULL;
6 list_status_t status = Unknown; 8 size_t size = 0;
7 int size = 0;
8 9
9 status = readAndVerifyList(fileName, data, &size); 10 mStatus = readAndVerifyList(fileName, &data, &size);
10 11
11 qDebug() << "Read and verify list finished. Status is: " << status; 12 if (isValid()) {
13 mFileContent = QByteArray::fromRawData(data, size);
14 }
12 } 15 }

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