Skip to content

Commit

Permalink
test/openssl/test_ssl: use TLS 1.2 for finished_messages on LibreSSL
Browse files Browse the repository at this point in the history
LibreSSL 2.2.x has a bug in the Finished message handling with TLS 1.3.
This is fixed by LibreSSL 3.3.2.
  • Loading branch information
rhenium committed Oct 16, 2021
1 parent 2dcb292 commit 0bea59d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/openssl/test_ssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ def test_finished_messages
}) { |port|
ctx = OpenSSL::SSL::SSLContext.new
ctx.verify_mode = OpenSSL::SSL::VERIFY_NONE
ctx.max_version = :TLS1_2 if libressl?(3, 2, 0) && !libressl?(3, 3, 0)
server_connect(port, ctx) { |ssl|
ssl.puts "abc"; ssl.gets

Expand Down

0 comments on commit 0bea59d

Please sign in to comment.