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
772 772
      :@verify_callback,
773 773
      :@verify_depth,
774 774
      :@verify_mode,
775
      :@ssl_options,
775 776
    ]
776 777
    SSL_ATTRIBUTES = [
777 778
      :ca_file,
......
785 786
      :verify_callback,
786 787
      :verify_depth,
787 788
      :verify_mode,
789
      :options,
788 790
    ]
789 791

  
790 792
    # Sets path of a CA certification file in PEM format.
......
828 830
    # OpenSSL::SSL::VERIFY_NONE or OpenSSL::SSL::VERIFY_PEER are acceptable.
829 831
    attr_accessor :verify_mode
830 832

  
833
    # Sets the SSL options flags. See OpenSSL::SSL::SSLContext#options=
834
    attr_accessor :ssl_options
835

  
831 836
    # Returns the X.509 certificates the server presented.
832 837
    def peer_cert
833 838
      if not use_ssl? or not @socket
834
-