[PATCH 2 of 3] Fix D: prefix before the date

Wald Commits scm-commit at wald.intevation.org
Wed Apr 23 18:54:20 CEST 2014


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1398272027 0
# Node ID 9cd28df2c4ce0e3549b59b8082ac4b40da0691ab
# Parent  cf25bb040186074c674db23936b03e551c71e9b1
Fix D: prefix before the date

diff -r cf25bb040186 -r 9cd28df2c4ce ui/createcertlistdialog.cpp
--- a/ui/createcertlistdialog.cpp	Wed Apr 23 16:53:28 2014 +0000
+++ b/ui/createcertlistdialog.cpp	Wed Apr 23 16:53:47 2014 +0000
@@ -190,11 +190,11 @@
                                      pk_context *pk)
 {
     /* Build up the list data */
-    QByteArray listData("F:1\r\n");
+    QByteArray listData("F:1\r\nD:");
     listData.append(listDate.toString(Qt::ISODate) + "\r\n");
 
     foreach (const Certificate& cert, certs) {
-        listData.append(QString::fromLatin1("D:") + cert.base64Line() + "\r\n");
+        listData.append(cert.base64Line() + "\r\n");
     }
 
     QByteArray signature = rsaSignSHA256Hash(sha256sum(listData), pk);


More information about the Trustbridge-commits mailing list