Skip to content

Commit bf19827

Browse files
committed
Fix test of cipher name to pass in LibreSSL 3.4
LibreSSL 3.5 switched the cipher naming to match OpenSSL.
1 parent b028152 commit bf19827

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/openssl/test_ssl.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,11 @@ def test_ciphersuites_method_tls_connection
15861586

15871587
server_connect(port, cli_ctx) do |ssl|
15881588
assert_equal('TLSv1.3', ssl.ssl_version)
1589-
assert_equal(csuite[0], ssl.cipher[0])
1589+
if libressl?(3, 4, 0) && !libressl?(3, 5, 0)
1590+
assert_equal("AEAD-AES128-GCM-SHA256", ssl.cipher[0])
1591+
else
1592+
assert_equal(csuite[0], ssl.cipher[0])
1593+
end
15901594
ssl.puts('abc'); assert_equal("abc\n", ssl.gets)
15911595
end
15921596
end

0 commit comments

Comments
 (0)