Sha256: f69d3b2697a8d97e3ae4c736c2091ece4d14e1fbe91a720c7acd91a18a99834b
Contents?: true
Size: 444 Bytes
Versions: 1
Compression:
Stored size: 444 Bytes
Contents
require 'socket' require 'net/https' require 'openssl' module Net class HTTP def set_context=(value) @ssl_context = OpenSSL::SSL::SSLContext.new @ssl_context &&= OpenSSL::SSL::SSLContext.new(value) end def ciphers return nil unless @ssl_context @ssl_context.ciphers end def ciphers=(val) @ssl_context ||= OpenSSL::SSL::SSLContext.new @ssl_context.ciphers = val end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ciphersurfer-0.50.0 | lib/ciphersurfer/net_http.rb |