We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f3ca0c commit dcdd71fCopy full SHA for dcdd71f
lib/openssl/ssl.rb
@@ -90,9 +90,11 @@ class SSLContext
90
)
91
end
92
93
- DEFAULT_CERT_STORE = OpenSSL::X509::Store.new # :nodoc:
94
- DEFAULT_CERT_STORE.set_default_paths
95
- DEFAULT_CERT_STORE.flags = OpenSSL::X509::V_FLAG_CRL_CHECK_ALL
+ DEFAULT_CERT_STORE = OpenSSL::X509::Store.new.tap do |store| # :nodoc:
+ store.set_default_paths
+ store.flags = OpenSSL::X509::V_FLAG_CRL_CHECK_ALL
96
+ store.freeze
97
+ end
98
99
# A callback invoked when DH parameters are required for ephemeral DH key
100
# exchange.
0 commit comments