summaryrefslogtreecommitdiffstats
path: root/ext/openssl
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-20 16:27:14 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-20 16:27:14 +0000
commit5c9ce7b3cbac612684b388f4b403b74f685aef8b (patch)
tree5af0f1deda1ad7a411b8fae875e7d2e085035dfc /ext/openssl
parent59a8f7d443822f9f5470f3d641e9f99ec4708eb7 (diff)
downloadruby-5c9ce7b3cbac612684b388f4b403b74f685aef8b.tar.gz
ruby-5c9ce7b3cbac612684b388f4b403b74f685aef8b.tar.xz
ruby-5c9ce7b3cbac612684b388f4b403b74f685aef8b.zip
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLContext.build):
enable CRL checking on default cert store. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/lib/openssl/ssl.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/openssl/lib/openssl/ssl.rb b/ext/openssl/lib/openssl/ssl.rb
index 3a4735ff7..71726801c 100644
--- a/ext/openssl/lib/openssl/ssl.rb
+++ b/ext/openssl/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