Mercurial > hg > nginx-tests
changeset 1387:ad3cb6f451a5
Tests: skip ssl_sni_reneg.t with TLS 1.3.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 11 Oct 2018 19:24:04 +0300 |
parents | 261f01ee5364 |
children | 0090e2476ef0 |
files | ssl_sni_reneg.t |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ssl_sni_reneg.t +++ b/ssl_sni_reneg.t @@ -39,8 +39,7 @@ eval { }; plan(skip_all => 'Net::SSLeay with OpenSSL SNI support required') if $@; -my $t = Test::Nginx->new()->has(qw/http http_ssl/)->has_daemon('openssl') - ->plan(8); +my $t = Test::Nginx->new()->has(qw/http http_ssl/)->has_daemon('openssl'); $t->write_file_expand('nginx.conf', <<'EOF'); @@ -95,6 +94,14 @@ foreach my $name ('localhost') { $t->run(); +{ + my (undef, $ssl) = get_ssl_socket(8080); + plan(skip_all => "TLS 1.3 forbids renegotiation") + if Net::SSLeay::version($ssl) > 0x0303; +} + +$t->plan(8); + ############################################################################### my ($s, $ssl) = get_ssl_socket(8080);