summaryrefslogtreecommitdiff
path: root/test/openssl/utils.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2021-09-27 15:32:39 +0900
committerKazuki Yamaguchi <k@rhe.jp>2021-10-23 13:38:36 +0900
commit0e805e73cedbce3748c979049c17c74f3f0eca43 (patch)
treed12df06a7eefb9974ec0345de2ab349943f7807c /test/openssl/utils.rb
parent37632a0ac635082e4ca9ca5b1c8da6b6770ff0ed (diff)
[ruby/openssl] test/openssl/test_ssl: assume TLS 1.2 support
Current versions of OpenSSL and LibreSSL all support TLS 1.2, so there is no need for checking the availability. https://github.com/ruby/openssl/commit/a175a41529
Diffstat (limited to 'test/openssl/utils.rb')
-rw-r--r--test/openssl/utils.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/openssl/utils.rb b/test/openssl/utils.rb
index ba2338ec12..efa831afac 100644
--- a/test/openssl/utils.rb
+++ b/test/openssl/utils.rb
@@ -189,13 +189,6 @@ class OpenSSL::SSLTestCase < OpenSSL::TestCase
@server = nil
end
- def tls12_supported?
- ctx = OpenSSL::SSL::SSLContext.new
- ctx.min_version = ctx.max_version = OpenSSL::SSL::TLS1_2_VERSION
- true
- rescue
- end
-
def tls13_supported?
return false unless defined?(OpenSSL::SSL::TLS1_3_VERSION)
ctx = OpenSSL::SSL::SSLContext.new