Skip to content

Commit 0bea59d

Browse files
committed
test/openssl/test_ssl: use TLS 1.2 for finished_messages on LibreSSL
LibreSSL 2.2.x has a bug in the Finished message handling with TLS 1.3. This is fixed by LibreSSL 3.3.2.
1 parent 2dcb292 commit 0bea59d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/openssl/test_ssl.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ def test_finished_messages
486486
}) { |port|
487487
ctx = OpenSSL::SSL::SSLContext.new
488488
ctx.verify_mode = OpenSSL::SSL::VERIFY_NONE
489+
ctx.max_version = :TLS1_2 if libressl?(3, 2, 0) && !libressl?(3, 3, 0)
489490
server_connect(port, ctx) { |ssl|
490491
ssl.puts "abc"; ssl.gets
491492

0 commit comments

Comments
 (0)