Class: OpenSSL::SSL::SSLContext
- Inherits:
-
Object
- Object
- OpenSSL::SSL::SSLContext
- Defined in:
- lib/td/core_ext/openssl/ssl/sslcontext/set_params.rb
Instance Method Summary collapse
-
#original_set_params ⇒ Object
For disabling SSLv3 connection in favor of POODLE Attack protection.
- #set_params(params = {}) ⇒ Object
Instance Method Details
#original_set_params ⇒ Object
For disabling SSLv3 connection in favor of POODLE Attack protection
Allow ‘options’ customize through Thread local storage since Net::HTTP does not support ‘options’ configuration.
11 |
# File 'lib/td/core_ext/openssl/ssl/sslcontext/set_params.rb', line 11 alias original_set_params set_params |
#set_params(params = {}) ⇒ Object
12 13 14 15 |
# File 'lib/td/core_ext/openssl/ssl/sslcontext/set_params.rb', line 12 def set_params(params={}) original_set_params(params) self. |= OP_NO_SSLv3 if Thread.current[:SET_SSL_OP_NO_SSLv3] end |