summaryrefslogtreecommitdiff
path: root/lib/net/http.rb
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
commitdcea9198a9d80bdf4eeacd9d9e9d883850a4a8d2 (patch)
tree7d2ba443cc330520282ffa7c8669eeeed7dafeeb /lib/net/http.rb
parent8cbf2dae5aadfa5d6241b0df2bf44d55db46704f (diff)
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/net/http.rb')
-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