Sha256: 4a8e918d98fa12bbcb445e96468555b04ed6204a0aaaf2a79500d3189c347245
Contents?: true
Size: 504 Bytes
Versions: 31
Compression:
Stored size: 504 Bytes
Contents
require 'openssl' module OpenSSL module SSL class SSLContext # 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. # alias original_set_params set_params def set_params(params={}) original_set_params(params) self.options |= OP_NO_SSLv3 if Thread.current[:SET_SSL_OP_NO_SSLv3] end end end end
Version data entries
31 entries across 31 versions & 1 rubygems