Mercurial > hg > nginx-tests
comparison ssl_verify_depth.t @ 1750:b28f88e352dd
Tests: skip ssl_verify_depth.t with LibreSSL.
It fails with the new X509 verifier appeared in LibreSSL 3.4.0 due to
a chain depth not limited except by X509_VERIFY_MAX_CHAIN_CERTS (32).
The other two tests ssl_crl.t and ssl_verify_client.t pass again after
bug fixes in LibreSSL 3.4.2.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 29 Nov 2021 19:12:36 +0300 |
parents | bad6aa24ec10 |
children | cdcd75657e52 |
comparison
equal
deleted
inserted
replaced
1749:34fc85598287 | 1750:b28f88e352dd |
---|---|
25 eval { require IO::Socket::SSL; }; | 25 eval { require IO::Socket::SSL; }; |
26 plan(skip_all => 'IO::Socket::SSL not installed') if $@; | 26 plan(skip_all => 'IO::Socket::SSL not installed') if $@; |
27 eval { IO::Socket::SSL::SSL_VERIFY_NONE(); }; | 27 eval { IO::Socket::SSL::SSL_VERIFY_NONE(); }; |
28 plan(skip_all => 'IO::Socket::SSL too old') if $@; | 28 plan(skip_all => 'IO::Socket::SSL too old') if $@; |
29 | 29 |
30 my $t = Test::Nginx->new()->has(qw/http http_ssl/) | 30 my $t = Test::Nginx->new()->has(qw/http http_ssl/)->has_daemon('openssl'); |
31 ->has_daemon('openssl')->plan(9); | 31 |
32 | 32 plan(skip_all => 'LibreSSL') if $t->has_module('LibreSSL'); |
33 $t->write_file_expand('nginx.conf', <<'EOF'); | 33 |
34 $t->plan(9)->write_file_expand('nginx.conf', <<'EOF'); | |
34 | 35 |
35 %%TEST_GLOBALS%% | 36 %%TEST_GLOBALS%% |
36 | 37 |
37 daemon off; | 38 daemon off; |
38 | 39 |