diff options
author | gotoyuzo <gotoyuzo@ruby-lang.org> | 2007-12-20 16:27:14 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@ruby-lang.org> | 2007-12-20 16:27:14 +0000 |
commit | bcac57a2e367ae2b9805b2d846e5101a5b4e2dff (patch) | |
tree | 3c0edfcfa1dc0e1b2eb17f708cf81c682b37cfa7 /lib/openssl/ssl.rb | |
parent | 220ddda9aad65e52bdd93c6090d633a92986f3fa (diff) | |
download | ruby-openssl-history-bcac57a2e367ae2b9805b2d846e5101a5b4e2dff.tar.gz |
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLContext.build):
enable CRL checking on default cert store.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/openssl/ssl.rb')
-rw-r--r-- | lib/openssl/ssl.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/openssl/ssl.rb b/lib/openssl/ssl.rb index 3a4735f..7172680 100644 --- a/lib/openssl/ssl.rb +++ b/lib/openssl/ssl.rb @@ -37,6 +37,9 @@ module OpenSSL unless ctx.ca_file or ctx.ca_path or ctx.cert_store or ctx.verify_callback ctx.cert_store = OpenSSL::X509::Store.new + if defined?(OpenSSL::X509::V_FLAG_CRL_CHECK_ALL) + ctx.cert_store.flags = OpenSSL::X509::V_FLAG_CRL_CHECK_ALL + end ctx.cert_store.set_default_paths end end |