Project

General

Profile

Feature #9450 ยป 0001-Expose-the-SSLContext-options-attribute-in-Net-HTTP.patch

ebroder (Evan Broder), 01/26/2014 01:08 PM

View differences:

lib/net/http.rb
:@verify_callback,
:@verify_depth,
:@verify_mode,
:@ssl_options,
]
SSL_ATTRIBUTES = [
:ca_file,
......
:verify_callback,
:verify_depth,
:verify_mode,
:options,
]
# Sets path of a CA certification file in PEM format.
......
# OpenSSL::SSL::VERIFY_NONE or OpenSSL::SSL::VERIFY_PEER are acceptable.
attr_accessor :verify_mode
# Sets the SSL options flags. See OpenSSL::SSL::SSLContext#options=
attr_accessor :ssl_options
# Returns the X.509 certificates the server presented.
def peer_cert
if not use_ssl? or not @socket
    (1-1/1)