Class: OpenSSL::SSL::SSLContext

Inherits:
Object
  • Object
show all
Defined in:
lib/td/client/api.rb

Instance Method Summary collapse

Instance Method Details

#original_set_paramsObject

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.



1579
# File 'lib/td/client/api.rb', line 1579

alias original_set_params set_params

#set_params(params = {}) ⇒ Object



1580
1581
1582
1583
# File 'lib/td/client/api.rb', line 1580

def set_params(params={})
  original_set_params(params)
  self.options |= OP_NO_SSLv3 if Thread.current[:SET_SSL_OP_NO_SSLv3]
end