diff ssl_sni_sessions.t @ 1970:6d3a8f4eb9b2

Tests: relaxed SSL version used in testing. This ensures that tests can be properly run with old OpenSSL versions when using recent versions of IO::Socket::SSL (which defaults to TLS 1.2+ starting with IO::Socket:SSL version 2.082, and therefore not compatible with OpenSSL before 1.0.1).
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 06 May 2024 00:03:13 +0300
parents c924ae8d7104
children
line wrap: on
line diff
--- a/ssl_sni_sessions.t	Mon May 06 00:03:01 2024 +0300
+++ b/ssl_sni_sessions.t	Mon May 06 00:03:13 2024 +0300
@@ -159,6 +159,7 @@
 
 sub get_ssl_context {
 	return IO::Socket::SSL::SSL_Context->new(
+		SSL_version => 'SSLv23',
 		SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(),
 		SSL_session_cache_size => 100
 	);