Skip to content

Commit 87b3ca8

Browse files
committed
net/http.rb - derive SSL_IVNAMES from SSL_ATTRIBUTES
1 parent 4be99c2 commit 87b3ca8

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

lib/net/http.rb

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,23 +1440,6 @@ def use_ssl=(flag)
14401440
@use_ssl = flag
14411441
end
14421442

1443-
SSL_IVNAMES = [
1444-
:@ca_file,
1445-
:@ca_path,
1446-
:@cert,
1447-
:@cert_store,
1448-
:@ciphers,
1449-
:@extra_chain_cert,
1450-
:@key,
1451-
:@ssl_timeout,
1452-
:@ssl_version,
1453-
:@min_version,
1454-
:@max_version,
1455-
:@verify_callback,
1456-
:@verify_depth,
1457-
:@verify_mode,
1458-
:@verify_hostname,
1459-
] # :nodoc:
14601443
SSL_ATTRIBUTES = [
14611444
:ca_file,
14621445
:ca_path,
@@ -1475,6 +1458,8 @@ def use_ssl=(flag)
14751458
:verify_hostname,
14761459
] # :nodoc:
14771460

1461+
SSL_IVNAMES = SSL_ATTRIBUTES.map { |a| "@#{a}".to_sym } # :nodoc:
1462+
14781463
# Sets or returns the path to a CA certification file in PEM format.
14791464
attr_accessor :ca_file
14801465

0 commit comments

Comments
 (0)