[PATCH 10 of 20] Tests: disabled ssl_sni_sessions.t with LibreSSL and BoringSSL

Maxim Dounin mdounin at mdounin.ru
Sat Mar 18 14:15:05 UTC 2023


# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1679140619 -10800
#      Sat Mar 18 14:56:59 2023 +0300
# Node ID 79177a6c535839517137dd7e3c7e7d57a5aa35dd
# Parent  8d33ee433f58be6100fb084a12ae8c569259666a
Tests: disabled ssl_sni_sessions.t with LibreSSL and BoringSSL.

With TLSv1.3, LibreSSL does not provide session reuse at all, and BoringSSL
only supports session tickets, and not server-side session cache.  Since
the test is focused on session cache usage, it is now skipped.

diff --git a/ssl_sni_sessions.t b/ssl_sni_sessions.t
--- a/ssl_sni_sessions.t
+++ b/ssl_sni_sessions.t
@@ -130,6 +130,12 @@ foreach my $name ('localhost') {
 plan(skip_all => 'no TLS 1.3 sessions')
 	if get('default', port(8443), get_ssl_context()) =~ /TLSv1.3/
 	&& ($Net::SSLeay::VERSION < 1.88 || $IO::Socket::SSL::VERSION < 2.061);
+plan(skip_all => 'no TLS 1.3 sessions in LibreSSL')
+	if get('default', port(8443), get_ssl_context()) =~ /TLSv1.3/
+	&& $t->has_module('LibreSSL');
+plan(skip_all => 'no TLS 1.3 session cache in BoringSSL')
+	if get('default', port(8443), get_ssl_context()) =~ /TLSv1.3/
+	&& $t->has_module('BoringSSL');
 
 $t->plan(6);
 


More information about the nginx-devel mailing list