Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/net/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def HTTP.socket_type #:nodoc: obsolete
# _opt_ sets following values by its accessor.
# The keys are ipaddr, ca_file, ca_path, cert, cert_store, ciphers, keep_alive_timeout,
# close_on_empty_response, key, open_timeout, read_timeout, write_timeout, ssl_timeout,
# ssl_version, use_ssl, verify_callback, verify_depth and verify_mode.
# ssl_version, use_ssl, verify_callback, verify_depth, verify_mode and alpn_protocols.
# If you set :use_ssl as true, you can use https and default value of
# verify_mode is set as OpenSSL::SSL::VERIFY_PEER.
#
Expand Down Expand Up @@ -886,6 +886,7 @@ def use_ssl=(flag)
:@verify_depth,
:@verify_mode,
:@verify_hostname,
:@alpn_protocols,
]
SSL_ATTRIBUTES = [
:ca_file,
Expand All @@ -903,6 +904,7 @@ def use_ssl=(flag)
:verify_depth,
:verify_mode,
:verify_hostname,
:alpn_protocols,
]

# Sets path of a CA certification file in PEM format.
Expand Down