summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-06-07 12:16:25 +0200
committerDr. David von Oheimb <dev@ddvo.net>2021-06-09 16:06:10 +0200
commit65a97b2c38c224f47e313868e01f58138d934478 (patch)
treee670b216b9279c1ff989a97e8eaeb7be35c235ab /test
parentd63053bbdfa226c85e9cec06c35283296e254a84 (diff)
25-test_verify.t: Prevent expiration of test case 'Name constraints bad othername name constraint'
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15656)
Diffstat (limited to 'test')
-rw-r--r--test/recipes/25-test_verify.t9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/recipes/25-test_verify.t b/test/recipes/25-test_verify.t
index 3ed408b795..d42e685259 100644
--- a/test/recipes/25-test_verify.t
+++ b/test/recipes/25-test_verify.t
@@ -371,10 +371,11 @@ ok(!verify("badalt10-cert", "", ["root-cert"], ["ncca1-cert", "ncca3-cert"], ),
#Check that we get the expected failure return code
with({ exit_checker => sub { return shift == 2; } },
- sub {
- ok(verify("bad-othername-namec", "", ["bad-othername-namec-inter"], [], "-partial_chain"),
- "Name constraints bad othername name constraint");
- });
+ sub {
+ ok(verify("bad-othername-namec", "", ["bad-othername-namec-inter"], [],
+ "-partial_chain", "-attime", "1623060000"),
+ "Name constraints bad othername name constraint");
+ });
ok(verify("ee-pss-sha1-cert", "", ["root-cert"], ["ca-cert"], "-auth_level", "0"),
"Accept PSS signature using SHA1 at auth level 0");