changeset 1869:5c50786e5da9

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.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 23 May 2023 16:29:58 +0400
parents d570dbcad925
children 884e898b9fe7
files ssl_session_ticket_key.t
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ssl_session_ticket_key.t
+++ b/ssl_session_ticket_key.t
@@ -24,6 +24,8 @@ select STDOUT; $| = 1;
 
 eval { require Net::SSLeay; die if $Net::SSLeay::VERSION < 1.86; };
 plan(skip_all => 'Net::SSLeay version => 1.86 required') if $@;
+eval { require IO::Socket::SSL; die if $IO::Socket::SSL::VERSION < 2.030; };
+plan(skip_all => 'IO::Socket::SSL version => 2.030 required') if $@;
 
 my $t = Test::Nginx->new()->has(qw/http http_ssl socket_ssl/)
 	->has_daemon('openssl')->plan(2)
@@ -97,6 +99,10 @@ is(get_ticket_key_name(), $key, 'ticket 
 
 select undef, undef, undef, 2.5;
 
+local $TODO = 'no TLSv1.3 sessions, old Net::SSLeay'
+	if $Net::SSLeay::VERSION < 1.88 && test_tls13();
+local $TODO = 'no TLSv1.3 sessions, old IO::Socket::SSL'
+	if $IO::Socket::SSL::VERSION < 2.061 && test_tls13();
 local $TODO = 'no TLSv1.3 sessions in LibreSSL'
 	if $t->has_module('LibreSSL') && test_tls13();