diff options
author | Matt Caswell <matt@openssl.org> | 2019-07-23 17:10:05 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-08-09 17:29:39 +0100 |
commit | 1a2a3a420609c2d540b544e5ae829a3cb468a6e3 (patch) | |
tree | 14e50634fd7d841141133e2966e45e0db3fb9d9c /test/recipes/90-test_sslapi.t | |
parent | 5235ef44b93306a14d0b6c695b13c64b16e1fdec (diff) |
Extend tests of SSL_check_chain()
Actually supply a chain and then test:
1) A successful check of both the ee and chain certs
2) A failure to check the ee cert
3) A failure to check a chain cert
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/9442)
Diffstat (limited to 'test/recipes/90-test_sslapi.t')
-rw-r--r-- | test/recipes/90-test_sslapi.t | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/recipes/90-test_sslapi.t b/test/recipes/90-test_sslapi.t index ac0bf07fa1..f01056c6f6 100644 --- a/test/recipes/90-test_sslapi.t +++ b/test/recipes/90-test_sslapi.t @@ -8,7 +8,7 @@ use OpenSSL::Test::Utils; -use OpenSSL::Test qw/:DEFAULT srctop_file/; +use OpenSSL::Test qw/:DEFAULT srctop_file srctop_dir/; use File::Temp qw(tempfile); setup("test_sslapi"); @@ -20,8 +20,7 @@ plan tests => 1; (undef, my $tmpfilename) = tempfile(); -ok(run(test(["sslapitest", srctop_file("apps", "server.pem"), - srctop_file("apps", "server.pem"), +ok(run(test(["sslapitest", srctop_dir("test", "certs"), srctop_file("test", "recipes", "90-test_sslapi_data", "passwd.txt"), $tmpfilename])), "running sslapitest"); |