Skip to content

Commit 18a4f5c

Browse files
committed
Tests: unbreak ssl_session_ticket_key.t with old IO::Socket::SSL.
Once ssl_session_ticket_key.t was rewritten using IO::Socket::SSL, it requires SSL_session_key and TLSv1.3 session reuse support checks. Although SSL_session_key has been introduced in IO::Socket::SSL 1.965, further improvements appeared in 2.030 are needed for tests to work.
1 parent 8241508 commit 18a4f5c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ssl_session_ticket_key.t

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ select STDOUT; $| = 1;
2424

2525
eval { require Net::SSLeay; die if $Net::SSLeay::VERSION < 1.86; };
2626
plan(skip_all => 'Net::SSLeay version => 1.86 required') if $@;
27+
eval { require IO::Socket::SSL; die if $IO::Socket::SSL::VERSION < 2.030; };
28+
plan(skip_all => 'IO::Socket::SSL version => 2.030 required') if $@;
2729

2830
my $t = Test::Nginx->new()->has(qw/http http_ssl socket_ssl/)
2931
->has_daemon('openssl')->plan(2)
@@ -97,6 +99,10 @@ is(get_ticket_key_name(), $key, 'ticket key match');
9799

98100
select undef, undef, undef, 2.5;
99101

102+
local $TODO = 'no TLSv1.3 sessions, old Net::SSLeay'
103+
if $Net::SSLeay::VERSION < 1.88 && test_tls13();
104+
local $TODO = 'no TLSv1.3 sessions, old IO::Socket::SSL'
105+
if $IO::Socket::SSL::VERSION < 2.061 && test_tls13();
100106
local $TODO = 'no TLSv1.3 sessions in LibreSSL'
101107
if $t->has_module('LibreSSL') && test_tls13();
102108

0 commit comments

Comments
 (0)