diff options
author | Daiki Ueno <ueno@gnu.org> | 2023-04-05 07:28:54 +0000 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2023-04-05 07:28:54 +0000 |
commit | 4ba4366d454ddadb48123b20bfba5f744278958c (patch) | |
tree | b83124adc95a78528b8df26c1dd20cf32ff53c1c /tests/cert-tests/pkcs7.sh | |
parent | b9196b7b7bc5f65abe454a586ffdeabd826eb3d1 (diff) | |
parent | 013767dae0d2403d5788fcf9fa6095c46c7733cf (diff) | |
download | gnutls-4ba4366d454ddadb48123b20bfba5f744278958c.tar.gz |
Merge branch 'tmp-ametzler-faketime' into 'master'
Use faketime instead of datefudge
See merge request gnutls/gnutls!1716
Diffstat (limited to 'tests/cert-tests/pkcs7.sh')
-rwxr-xr-x | tests/cert-tests/pkcs7.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cert-tests/pkcs7.sh b/tests/cert-tests/pkcs7.sh index 6122a31859..e1bf874552 100755 --- a/tests/cert-tests/pkcs7.sh +++ b/tests/cert-tests/pkcs7.sh @@ -80,7 +80,7 @@ fi for FILE in full.p7b openssl.p7b openssl-keyid.p7b; do # check validation with date prior to CA issuance -datefudge -s "2011-1-10" \ +gnutls_timewrapper_standalone static "2011-01-10 00:00:00" \ ${VALGRIND} "${CERTTOOL}" --inder --p7-verify --load-ca-certificate "${srcdir}/../../doc/credentials/x509/ca.pem" --infile "${srcdir}/data/${FILE}" >"${OUTFILE}" rc=$? @@ -90,7 +90,7 @@ if test "${rc}" = "0"; then fi # check validation with date prior to intermediate cert issuance -datefudge -s "2011-5-28 08:38:00 UTC" \ +env TZ=UTC gnutls_timewrapper_standalone static "2011-05-28 08:38:00" \ ${VALGRIND} "${CERTTOOL}" --inder --p7-verify --load-ca-certificate "${srcdir}/../../doc/credentials/x509/ca.pem" --infile "${srcdir}/data/${FILE}" >"${OUTFILE}" rc=$? @@ -100,7 +100,7 @@ if test "${rc}" = "0"; then fi # check validation with date after intermediate cert issuance -datefudge -s "2038-10-13" \ +gnutls_timewrapper_standalone static "2038-10-13 00:00:00" \ ${VALGRIND} "${CERTTOOL}" --inder --p7-verify --load-ca-certificate "${srcdir}/../../doc/credentials/x509/ca.pem" --infile "${srcdir}/data/${FILE}" >"${OUTFILE}" rc=$? |