summaryrefslogtreecommitdiff
path: root/tests/cert-tests/md5-test.sh
diff options
context:
space:
mode:
authorAndreas Metzler <ametzler@bebt.de>2023-02-28 18:49:56 +0100
committerAndreas Metzler <ametzler@bebt.de>2023-04-04 17:56:05 +0200
commit31ece95986d2735421f3461b447acf2755c59838 (patch)
tree6a55dde051a88f88083aabbc9cc00a5ea1fa37f4 /tests/cert-tests/md5-test.sh
parentb9196b7b7bc5f65abe454a586ffdeabd826eb3d1 (diff)
downloadgnutls-31ece95986d2735421f3461b447acf2755c59838.tar.gz
Change timestamp format for faketime compatibility.
Change all timestamps passed to "datefudge -s" to "YYYY-MM-DD hh:mm:ss" format for compatibility with faketime -f ("Freeze clock" advanced format) Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Diffstat (limited to 'tests/cert-tests/md5-test.sh')
-rwxr-xr-xtests/cert-tests/md5-test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cert-tests/md5-test.sh b/tests/cert-tests/md5-test.sh
index 4cea9e8e4c..d8c830f65c 100755
--- a/tests/cert-tests/md5-test.sh
+++ b/tests/cert-tests/md5-test.sh
@@ -37,7 +37,7 @@ skip_if_no_datefudge
# Test MD5 signatures
-datefudge -s "2016-04-15" \
+datefudge -s "2016-04-15 00:00:00" \
"${CERTTOOL}" --verify-chain --infile "${srcdir}/data/chain-md5.pem" >/dev/null 2>&1
rc=$?
if test "${rc}" != "1"; then
@@ -45,7 +45,7 @@ if test "${rc}" != "1"; then
exit ${rc}
fi
-datefudge -s "2016-04-15" \
+datefudge -s "2016-04-15 00:00:00" \
"${CERTTOOL}" --verify-allow-broken --verify-chain --infile "${srcdir}/data/chain-md5.pem" >/dev/null 2>&1
rc=$?
if test "${rc}" != "0"; then