[ruby/openssl] 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. https://github.com/ruby/openssl/commit/0bea59d245
This commit is contained in:
parent
c1147f7f71
commit
e36906f9ab
@ -526,6 +526,7 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase
|
|||||||
}) { |port|
|
}) { |port|
|
||||||
ctx = OpenSSL::SSL::SSLContext.new
|
ctx = OpenSSL::SSL::SSLContext.new
|
||||||
ctx.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
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|
|
server_connect(port, ctx) { |ssl|
|
||||||
ssl.puts "abc"; ssl.gets
|
ssl.puts "abc"; ssl.gets
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user