comparison 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
comparison
equal deleted inserted replaced
20:fec1a610d43f 21:dc1e1e9e62ce
41 return; 41 return;
42 } 42 }
43 43
44 mDate = QDateTime::fromMSecsSinceEpoch(timestamp * 1000); 44 mDate = QDateTime::fromMSecsSinceEpoch(timestamp * 1000);
45 } else if (curLine.startsWith("I:")) { 45 } else if (curLine.startsWith("I:")) {
46 mCertificatesInstall << QByteArray::fromBase64(curLine.remove(0,2).toLatin1()); 46 mCertificatesInstall << Certificate(
47 QByteArray::fromBase64(curLine.remove(0,2).toLatin1()));
47 } else if (curLine.startsWith("R:")) { 48 } else if (curLine.startsWith("R:")) {
48 mCertificatesInstall << QByteArray::fromBase64(curLine.remove(0,2).toLatin1()); 49 mCertificatesInstall << Certificate(
50 QByteArray::fromBase64(curLine.remove(0,2).toLatin1()));
49 } else if (curLine.startsWith("S:")) { 51 } else if (curLine.startsWith("S:")) {
50 // Signature is verified in readAndVerifyList 52 // Signature is verified in readAndVerifyList
51 continue; 53 continue;
52 } else if (!curLine.isEmpty()){ 54 } else if (!curLine.isEmpty()){
53 qDebug () << "Don't know how to handle: " << curLine; 55 qDebug () << "Don't know how to handle: " << curLine;

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