Skip to content

Commit

Permalink
net/http.rb - derive SSL_IVNAMES from SSL_ATTRIBUTES
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg authored and hsbt committed Jul 11, 2024
1 parent d6edfa2 commit 7191bb9
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions lib/net/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1481,23 +1481,6 @@ def use_ssl=(flag)
@use_ssl = flag
end

SSL_IVNAMES = [
:@ca_file,
:@ca_path,
:@cert,
:@cert_store,
:@ciphers,
:@extra_chain_cert,
:@key,
:@ssl_timeout,
:@ssl_version,
:@min_version,
:@max_version,
:@verify_callback,
:@verify_depth,
:@verify_mode,
:@verify_hostname,
] # :nodoc:
SSL_ATTRIBUTES = [
:ca_file,
:ca_path,
Expand All @@ -1516,6 +1499,8 @@ def use_ssl=(flag)
:verify_hostname,
] # :nodoc:

SSL_IVNAMES = SSL_ATTRIBUTES.map { |a| "@#{a}".to_sym } # :nodoc:

# Sets or returns the path to a CA certification file in PEM format.
attr_accessor :ca_file

Expand Down

0 comments on commit 7191bb9

Please sign in to comment.