Skip to content

Commit 50b1dd3

Browse files
committed
Tests: skip ssl_sni_protocols.t with Net::SSLeay lacking TLSv1.3.
It may be missing in the underlying Library, seen on Amazon Linux LTS with Net:SSLeay linked to OpenSSL 1.0.2.
1 parent fa9d3ee commit 50b1dd3

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

ssl_sni_protocols.t

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ use Test::Nginx;
2222
select STDERR; $| = 1;
2323
select STDOUT; $| = 1;
2424

25-
my $t = Test::Nginx->new()->has(qw/http http_ssl openssl:1.1.1 socket_ssl_sni/)
26-
->has_daemon('openssl')->plan(4)
27-
->write_file_expand('nginx.conf', <<'EOF');
25+
my $t = Test::Nginx->new()->has(qw/http http_ssl openssl:1.1.1 socket_ssl_sni/);
26+
27+
eval { defined &Net::SSLeay::CTX_set_ciphersuites or die; };
28+
plan(skip_all => 'Net::SSLeay too old') if $@;
29+
30+
$t->has_daemon('openssl')->plan(4)->write_file_expand('nginx.conf', <<'EOF');
2831
2932
%%TEST_GLOBALS%%
3033

stream_ssl_sni_protocols.t

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ select STDERR; $| = 1;
2323
select STDOUT; $| = 1;
2424

2525
my $t = Test::Nginx->new()
26-
->has(qw/stream stream_ssl stream_return openssl:1.1.1 socket_ssl_sni/)
27-
->has_daemon('openssl')->plan(4)
28-
->write_file_expand('nginx.conf', <<'EOF');
26+
->has(qw/stream stream_ssl stream_return openssl:1.1.1 socket_ssl_sni/);
27+
28+
eval { defined &Net::SSLeay::CTX_set_ciphersuites or die; };
29+
plan(skip_all => 'Net::SSLeay too old') if $@;
30+
31+
$t->has_daemon('openssl')->plan(4)->write_file_expand('nginx.conf', <<'EOF');
2932
3033
%%TEST_GLOBALS%%
3134

0 commit comments

Comments
 (0)