# HG changeset patch # User Maxim Dounin # Date 1679590223 -10800 # Node ID 65b1dd07c0e4208d13555087f5123ca88744bbde # Parent 6705a3760f480f90ad51ac29ea4b42e2c80230cc Tests: fixed stream_ssl_variables.t.t with LibreSSL and TLSv1.3. LibreSSL does not support session reuse with TLSv1.3. diff --git a/stream_ssl_variables.t b/stream_ssl_variables.t --- a/stream_ssl_variables.t +++ b/stream_ssl_variables.t @@ -101,11 +101,17 @@ is(stream('127.0.0.1:' . port(8080))->re like(Net::SSLeay::read($ssl), qr/^\.:(\w{64})?:[\w-]+:(TLS|SSL)v(\d|\.)+$/, 'ssl variables'); +TODO: { +local $TODO = 'no TLSv1.3 sessions in LibreSSL' + if $t->has_module('LibreSSL') && test_tls13(); + my $ses = Net::SSLeay::get_session($ssl); ($s, $ssl) = get_ssl_socket(port(8081), $ses); like(Net::SSLeay::read($ssl), qr/^r:(\w{64})?:[\w-]+:(TLS|SSL)v(\d|\.)+$/, 'ssl variables - session reused'); +} + SKIP: { skip 'no sni', 3 unless $t->has_module('sni'); @@ -123,6 +129,11 @@ is(Net::SSLeay::ssl_read_all($ssl), '', ############################################################################### +sub test_tls13 { + ($s, $ssl) = get_ssl_socket(port(8081)); + Net::SSLeay::read($ssl) =~ /TLSv1.3/; +} + sub get_ssl_socket { my ($port, $ses, $name) = @_;