Mercurial > trustbridge
comparison ui/createcertlistdialog.cpp @ 473:9cd28df2c4ce
Fix D: prefix before the date
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 23 Apr 2014 16:53:47 +0000 |
parents | 0d71ce440bcc |
children | 9d3880db6ba7 c495dd026d61 |
comparison
equal
deleted
inserted
replaced
472:cf25bb040186 | 473:9cd28df2c4ce |
---|---|
188 const QString& filePath, | 188 const QString& filePath, |
189 const QDateTime& listDate, | 189 const QDateTime& listDate, |
190 pk_context *pk) | 190 pk_context *pk) |
191 { | 191 { |
192 /* Build up the list data */ | 192 /* Build up the list data */ |
193 QByteArray listData("F:1\r\n"); | 193 QByteArray listData("F:1\r\nD:"); |
194 listData.append(listDate.toString(Qt::ISODate) + "\r\n"); | 194 listData.append(listDate.toString(Qt::ISODate) + "\r\n"); |
195 | 195 |
196 foreach (const Certificate& cert, certs) { | 196 foreach (const Certificate& cert, certs) { |
197 listData.append(QString::fromLatin1("D:") + cert.base64Line() + "\r\n"); | 197 listData.append(cert.base64Line() + "\r\n"); |
198 } | 198 } |
199 | 199 |
200 QByteArray signature = rsaSignSHA256Hash(sha256sum(listData), pk); | 200 QByteArray signature = rsaSignSHA256Hash(sha256sum(listData), pk); |
201 if (signature.size() != 3072 / 8) { | 201 if (signature.size() != 3072 / 8) { |
202 qDebug() << "Signature creation returned signature of invalid size."; | 202 qDebug() << "Signature creation returned signature of invalid size."; |