summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMSP-Greg <[email protected]>2023-11-26 11:49:23 -0600
committergit <[email protected]>2024-07-11 01:10:08 +0000
commitd605fb54cf7ec8bb6ee5ca7843980f710d1fdb5a (patch)
tree79291bd769b6085e26440515ad4c2ca7142aba82
parent9a5e3a4007b0087a2daac303e7aa3f9aa15c140b (diff)
[ruby/net-http] net/http.rb - derive SSL_IVNAMES from SSL_ATTRIBUTES
https://github.com/ruby/net-http/commit/7191bb923b
-rw-r--r--lib/net/http.rb19
1 files changed, 2 insertions, 17 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 958ff09f0e..a58c097843 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1481,23 +1481,6 @@ module Net #:nodoc:
@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,
@@ -1516,6 +1499,8 @@ module Net #:nodoc:
: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