aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 16:25:22 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 16:25:22 +0000
commit3ed57a122727fda0a7ade91f828c7ba402ca0025 (patch)
tree7d2ba443cc330520282ffa7c8669eeeed7dafeeb /lib
parent41bee5522bbfba3ab18de1744b49bd7c598e468a (diff)
downloadruby-3ed57a122727fda0a7ade91f828c7ba402ca0025.tar.gz
Introduce Net::HTTP#min_version/max_version [Feature #9450]
Set SSL minimum/maximum version. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/http.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index bfc6d4535d..0bcba43967 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -816,6 +816,8 @@ module Net #:nodoc:
:@key,
:@ssl_timeout,
:@ssl_version,
+ :@min_version,
+ :@max_version,
:@verify_callback,
:@verify_depth,
:@verify_mode,
@@ -829,6 +831,8 @@ module Net #:nodoc:
:key,
:ssl_timeout,
:ssl_version,
+ :min_version,
+ :max_version,
:verify_callback,
:verify_depth,
:verify_mode,
@@ -863,6 +867,12 @@ module Net #:nodoc:
# Sets the SSL version. See OpenSSL::SSL::SSLContext#ssl_version=
attr_accessor :ssl_version
+ # Sets the minimum SSL version. See OpenSSL::SSL::SSLContext#min_version=
+ attr_accessor :min_version
+
+ # Sets the maximum SSL version. See OpenSSL::SSL::SSLContext#max_version=
+ attr_accessor :max_version
+
# Sets the verify callback for the server certification verification.
attr_accessor :verify_callback