diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-10 23:35:35 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-10 23:35:35 +0000 |
commit | 661a936e64449a4bdd2fd979e433cd93f66dd34e (patch) | |
tree | 8b447394c13a5975fd1f38cca56eb2cbade121bd /lib/net/http.rb | |
parent | e68f4ac7dc5a55c16e560fa7796bb9981ec6833d (diff) | |
download | ruby-661a936e64449a4bdd2fd979e433cd93f66dd34e.tar.gz |
* lib/net/http.rb (Net::HTTP::SSL_ATTRIBUTES): Use symbol keys instead
of string keys to avoid duplicating parameters in
OpenSSL::SSL:SSLContext#set_params.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r-- | lib/net/http.rb | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 2172bfccc0..1c594e0e4d 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -674,10 +674,19 @@ module Net #:nodoc: @use_ssl = flag end - SSL_ATTRIBUTES = %w( - ssl_version key cert ca_file ca_path cert_store ciphers - verify_mode verify_callback verify_depth ssl_timeout - ) + SSL_ATTRIBUTES = [ + :ca_file, + :ca_path, + :cert, + :cert_store, + :ciphers, + :key, + :ssl_timeout, + :ssl_version, + :verify_callback, + :verify_depth, + :verify_mode, + ] # Sets path of a CA certification file in PEM format. # |