changeset 30:381558ff6f26

Also break the signature with carriage return
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 13 Mar 2014 17:26:33 +0000
parents 42a27154abaf
children 37fc66967517
files ui/tests/data/NOTES ui/tests/data/list-invalid-signed.txt ui/tests/data/list-valid-signed.txt
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ui/tests/data/NOTES	Thu Mar 13 15:38:28 2014 +0000
+++ b/ui/tests/data/NOTES	Thu Mar 13 17:26:33 2014 +0000
@@ -10,7 +10,7 @@
 
 Signature created with:
 
-    echo S:$(openssl dgst -sha256 -sign testkey-priv.pem < list-valid.txt | base64 -w0) > list-valid-signed.txt
+    echo -e S:$(openssl dgst -sha256 -sign testkey-priv.pem < list-valid.txt | base64 -w0)\\r > list-valid-signed.txt
     cat list-valid.txt >> list-valid-signed.txt
     cp list-valid-signed.txt list-invalid-signed.txt
     tail -1 list-valid.txt >> list-invalid-signed.txt
--- a/ui/tests/data/list-invalid-signed.txt	Thu Mar 13 15:38:28 2014 +0000
+++ b/ui/tests/data/list-invalid-signed.txt	Thu Mar 13 17:26:33 2014 +0000
@@ -1,4 +1,4 @@
-S:gfzEnmOdi0nNi5TPK+DfGKXEpY1nXJGg5Qhz9TQA6r7J24mSqHFjwvp0bomXHSxggyhbaoUIAwGk6DWOaC2B8GP5cUWrW+Z5iGbkmQ24U/iaLOABG02BmjGxHWIVAMGSo0L/swTx2uSx6FP8XZE4wTR4jgYLKwzAk8mTSO5WS2EJcW73u52vr5DwXWLoXoYyxJhO+kdHlX0UtzXdv1wjWklicXKya1p2CP3cXMWjwj4yoBv2o/bQmALIrk0vM3Jh0EY9hcN+kEMbRgr6dYatIPEFK4Q3swJc0jvuldITqZzwyvKuwrfqNZCDO24Gtuf3R2GkhpFMZYjSqFA563UnJZy+12sF1c/KelyrCekJSQuYeMa0Nz6O76BDdveCW/QUOeH1CkvvVg4yp/sYij5fqaHt58X7idJa/G8or1xdY+A3THygkgTu6n2cB3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AsgRBjYUBpbnRldmF0aW9uLmRlhhhodHRwOi8vY2EuaW50ZXZhdGlvbi5vcmcwDQYJKoZIhvcNAQEFBQADggIBAAnDM5QQeCHHE/LRzNc9MqfNXV+xkDr15wpNYwLSnmRgD+HmwMnwYE/D0shquCrcnatId8VLRIDdIwQyHUM58mDqb/GrGy4XLA63wndURKQw9Sr2Cg5et+dwYBQRGy/zWlOEJTdqhwLlKu84py7cXxIQbFcY23rB957YET5lOaXFpCtXmuCjYIXynf6V39+UXB80YE/JYYxOZDpqaEtSvx+v83ivcUzr51gizyLg9aXee6qzRjNTzwZUSsC2f4S7P/WLcYWOGvzdx/19++XhH3vPbWqqNXwxNqlYlFET7I9WVmCieaeyEP4vXbYDRs6pgfnJ3RmR0JN/b5hTZDmI4iPP7I2arvx3T6BCKRRXGUb4eSmrLAdQq4JM74ktoO21EOYR5sKYrQy6mGFxbR8v5vJHs8oSzsCY5xaSt//1h+NS2OIF0C7Mf6svIkcqUFEefo0WpF4t0PsUjak1XU7dHc75p9RtANDFMuH/qAZ47LGg4MMKrSYwsy4W8qLYVxxnBT9Xawlm+LJegq1e+xVj1tlDAo/qfgoYGHAznli3htntcwZAbxUp2oE9T/+733j8FT13Q7ra0CcLuIfn/R/MNR1XoFOnFFR6ONkVDqJ/bFaBxgOFObNQU+J03dQGc8PbEtDUSACnG6ASNIiYV/QWlkJNwZt6Ejrnd+Ye4lewGphm
--- a/ui/tests/data/list-valid-signed.txt	Thu Mar 13 15:38:28 2014 +0000
+++ b/ui/tests/data/list-valid-signed.txt	Thu Mar 13 17:26:33 2014 +0000
@@ -1,4 +1,4 @@
-S:gfzEnmOdi0nNi5TPK+DfGKXEpY1nXJGg5Qhz9TQA6r7J24mSqHFjwvp0bomXHSxggyhbaoUIAwGk6DWOaC2B8GP5cUWrW+Z5iGbkmQ24U/iaLOABG02BmjGxHWIVAMGSo0L/swTx2uSx6FP8XZE4wTR4jgYLKwzAk8mTSO5WS2EJcW73u52vr5DwXWLoXoYyxJ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