Mercurial > hg > nginx-tests
comparison mail_ssl_session_reuse.t @ 1966:c924ae8d7104
Tests: session reuse handling with Net::SSLeay with LibreSSL.
LibreSSL does not support session reuse with TLSv1.3, and this causes
various test failures if Net::SSLeay is compiled with LibreSSL. Notably,
this affects macOS, where Net::SSLeay compiled with LibreSSL is shipped
with the OS.
Fix is to mark relevant tests as TODO if Net::SSLeay is compiled with
LibreSSL, similarly to what we already do for LibreSSL on the server side.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 06 May 2024 00:01:46 +0300 |
parents | f7f1f349dd26 |
children | ab45ee8011df |
comparison
equal
deleted
inserted
replaced
1965:84f4d4930835 | 1966:c924ae8d7104 |
---|---|
138 if $Net::SSLeay::VERSION < 1.88 && test_tls13(); | 138 if $Net::SSLeay::VERSION < 1.88 && test_tls13(); |
139 local $TODO = 'no TLSv1.3 sessions, old IO::Socket::SSL' | 139 local $TODO = 'no TLSv1.3 sessions, old IO::Socket::SSL' |
140 if $IO::Socket::SSL::VERSION < 2.061 && test_tls13(); | 140 if $IO::Socket::SSL::VERSION < 2.061 && test_tls13(); |
141 local $TODO = 'no TLSv1.3 sessions in LibreSSL' | 141 local $TODO = 'no TLSv1.3 sessions in LibreSSL' |
142 if $t->has_module('LibreSSL') && test_tls13(); | 142 if $t->has_module('LibreSSL') && test_tls13(); |
143 local $TODO = 'no TLSv1.3 sessions in Net::SSLeay (LibreSSL)' | |
144 if Net::SSLeay::constant("LIBRESSL_VERSION_NUMBER") && test_tls13(); | |
143 | 145 |
144 is(test_reuse(8993), 1, 'tickets reused'); | 146 is(test_reuse(8993), 1, 'tickets reused'); |
145 is(test_reuse(8994), 1, 'tickets and cache reused'); | 147 is(test_reuse(8994), 1, 'tickets and cache reused'); |
146 | 148 |
147 TODO: { | 149 TODO: { |