Tests: skip ssl_sni_reneg.t with TLS 1.3.
diff --git a/ssl_sni_reneg.t b/ssl_sni_reneg.t
index 47a4b0c..21bb697 100644
--- a/ssl_sni_reneg.t
+++ b/ssl_sni_reneg.t
@@ -39,8 +39,7 @@
};
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 @@
$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);