[PATCH 2 of 6] Tests: unbreak tests with IO::Socket:SSL lacking SSL_session_key

Sergey Kandaurov pluknet at nginx.com
Mon May 22 19:52:14 UTC 2023


# HG changeset patch
# User Sergey Kandaurov <pluknet at nginx.com>
# Date 1684773874 -14400
#      Mon May 22 20:44:34 2023 +0400
# Node ID 4a3a451716ba26f8fc4be1ccc88dd8596101a6b2
# Parent  231b14e2041afed10f5c2e6f62aad298854a6379
Tests: unbreak tests with IO::Socket:SSL lacking SSL_session_key.

diff --git a/ssl_certificate.t b/ssl_certificate.t
--- a/ssl_certificate.t
+++ b/ssl_certificate.t
@@ -171,6 +171,8 @@ local $TODO = 'no TLSv1.3 sessions, old 
 	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 SSL_session_key, old IO::Socket::SSL'
+	if $IO::Socket::SSL::VERSION < 1.965;
 
 like(get('default', 8080, $s), qr/default:r/, 'session reused');
 
diff --git a/stream_ssl_certificate.t b/stream_ssl_certificate.t
--- a/stream_ssl_certificate.t
+++ b/stream_ssl_certificate.t
@@ -148,6 +148,8 @@ local $TODO = 'no TLSv1.3 sessions, old 
 	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 SSL_session_key, old IO::Socket::SSL'
+	if $IO::Socket::SSL::VERSION < 1.965;
 
 like(get('default', 8080, $s), qr/default:r/, 'session reused');
 


More information about the nginx-devel mailing list