diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-06-07 12:16:25 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-06-09 16:06:10 +0200 |
commit | 65a97b2c38c224f47e313868e01f58138d934478 (patch) | |
tree | e670b216b9279c1ff989a97e8eaeb7be35c235ab /test | |
parent | 80-test_cmp_http.t: Improve the way the test server is launched and killed (diff) | |
download | openssl-65a97b2c38c224f47e313868e01f58138d934478.tar.xz openssl-65a97b2c38c224f47e313868e01f58138d934478.zip |
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.t | 9 |
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"); |