Skip to content

Commit

Permalink
SSL - Add alpn_protocols to SSLContext attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg committed May 17, 2022
1 parent 992d07c commit 76bc434
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 76bc434

Please sign in to comment.