diff mail_ssl_session_reuse.t @ 1971:ab45ee8011df

Tests: guarded session ticket tests for old OpenSSL versions. Much like SNI support, TLS session tickets are available starting with OpenSSL 0.9.8f if TLS extensions support is explicitly configured, and enabled by default since 0.9.8j. As such, SNI availability is checked to ensure TLS extensions support is compiled in. Additionally, the ssl_session_ticket_key.t tests for automatic ticket key rotation, which uses session ticket key callback, as introduced in OpenSSL 0.9.8h.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 06 May 2024 00:03:16 +0300
parents c924ae8d7104
children
line wrap: on
line diff
--- a/mail_ssl_session_reuse.t
+++ b/mail_ssl_session_reuse.t
@@ -143,7 +143,13 @@ local $TODO = 'no TLSv1.3 sessions in Li
 local $TODO = 'no TLSv1.3 sessions in Net::SSLeay (LibreSSL)'
 	if Net::SSLeay::constant("LIBRESSL_VERSION_NUMBER") && test_tls13();
 
+TODO: {
+local $TODO = 'no session tickets' unless $t->has_module('tickets');
+
 is(test_reuse(8993), 1, 'tickets reused');
+
+}
+
 is(test_reuse(8994), 1, 'tickets and cache reused');
 
 TODO: {