summaryrefslogtreecommitdiff
path: root/test/openssl
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2022-03-25 13:50:10 -0700
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-08 23:18:18 +0900
commitdef445303a93c69dd16a9b849b9171d4e89c6dc5 (patch)
tree0b44c282510fab9a310e90c328b99e36ed1134ca /test/openssl
parentb5efef37942aa4c2b5e2ec2ab0b231ccd38cbe7a (diff)
[ruby/openssl] Fix test of cipher name to pass in LibreSSL 3.4
LibreSSL 3.5 switched the cipher naming to match OpenSSL. https://github.com/ruby/openssl/commit/bf198278bd
Diffstat (limited to 'test/openssl')
-rw-r--r--test/openssl/test_ssl.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb
index b3d7cba6e6..3ba8b39863 100644
--- a/test/openssl/test_ssl.rb
+++ b/test/openssl/test_ssl.rb
@@ -1586,7 +1586,11 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase
server_connect(port, cli_ctx) do |ssl|
assert_equal('TLSv1.3', ssl.ssl_version)
- assert_equal(csuite[0], ssl.cipher[0])
+ if libressl?(3, 4, 0) && !libressl?(3, 5, 0)
+ assert_equal("AEAD-AES128-GCM-SHA256", ssl.cipher[0])
+ else
+ assert_equal(csuite[0], ssl.cipher[0])
+ end
ssl.puts('abc'); assert_equal("abc\n", ssl.gets)
end
end