[ruby/net-http] net/http.rb - derive SSL_IVNAMES from SSL_ATTRIBUTES
https://github.com/ruby/net-http/commit/7191bb923b
This commit is contained in:
parent
9a5e3a4007
commit
d605fb54cf
@ -1481,23 +1481,6 @@ module Net #:nodoc:
|
|||||||
@use_ssl = flag
|
@use_ssl = flag
|
||||||
end
|
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 = [
|
SSL_ATTRIBUTES = [
|
||||||
:ca_file,
|
:ca_file,
|
||||||
:ca_path,
|
:ca_path,
|
||||||
@ -1516,6 +1499,8 @@ module Net #:nodoc:
|
|||||||
:verify_hostname,
|
:verify_hostname,
|
||||||
] # :nodoc:
|
] # :nodoc:
|
||||||
|
|
||||||
|
SSL_IVNAMES = SSL_ATTRIBUTES.map { |a| "@#{a}".to_sym } # :nodoc:
|
||||||
|
|
||||||
# Sets or returns the path to a CA certification file in PEM format.
|
# Sets or returns the path to a CA certification file in PEM format.
|
||||||
attr_accessor :ca_file
|
attr_accessor :ca_file
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user