summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
authorrhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-25 14:12:07 +0000
committerrhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-25 14:12:07 +0000
commit55953e374db2193ffb6ca84e2cb83d480ecd68ac (patch)
tree1625e8bb1dfbef1410a5a89e80d85a6fcf5e472b /test/net
parentc56ac0863637b1315099be600fa5ef624d658ebb (diff)
openssl: revert changes in SSLContext#{min,max}_version= in r60310
And adapt a net/http test to their old behavior. [ruby-core:83491] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net')
-rw-r--r--test/net/http/test_https.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb
index 23631111b7..8004d5c5f2 100644
--- a/test/net/http/test_https.rb
+++ b/test/net/http/test_https.rb
@@ -195,7 +195,7 @@ class TestNetHTTPS < Test::Unit::TestCase
def test_min_version
http = Net::HTTP.new("127.0.0.1", config("port"))
http.use_ssl = true
- http.min_version = :TLSv1
+ http.min_version = :TLS1
http.verify_callback = Proc.new do |preverify_ok, store_ctx|
true
end
@@ -208,7 +208,7 @@ class TestNetHTTPS < Test::Unit::TestCase
def test_max_version
http = Net::HTTP.new("127.0.0.1", config("port"))
http.use_ssl = true
- http.max_version = :SSLv2
+ http.max_version = :SSL2
http.verify_callback = Proc.new do |preverify_ok, store_ctx|
true
end