aboutsummaryrefslogtreecommitdiffstats
path: root/test/openssl/test_x509store.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-09 17:18:54 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-09 17:18:54 +0000
commit16a166dd35ffde44eff0f4f96a4d064ee95ab3f4 (patch)
tree521f02681079d9ebb32c774ea3a83225776909e4 /test/openssl/test_x509store.rb
parent2dc98cd0f3b8a0c4466337b01d48ba0797c05a5b (diff)
downloadruby-16a166dd35ffde44eff0f4f96a4d064ee95ab3f4.tar.gz
* ext/openssl/ossl_x509store.c (ossl_x509stctx_cleanup): removing C
implementation of `cleanup`. * ext/openssl/lib/openssl/x509.rb: adding ruby implementation of `cleanup`. OpenSSL::X509::StoreContext#cleanup is deprecated since reusing the underlying struct doesn't make sense. [ruby-dev:42546] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl/test_x509store.rb')
-rw-r--r--test/openssl/test_x509store.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/openssl/test_x509store.rb b/test/openssl/test_x509store.rb
index 238ee90030..81fa0b0dcb 100644
--- a/test/openssl/test_x509store.rb
+++ b/test/openssl/test_x509store.rb
@@ -22,6 +22,14 @@ class OpenSSL::TestX509Store < Test::Unit::TestCase
def teardown
end
+ def test_nosegv_on_cleanup
+ cert = OpenSSL::X509::Certificate.new
+ store = OpenSSL::X509::Store.new
+ ctx = OpenSSL::X509::StoreContext.new(store, cert, [])
+ ctx.cleanup
+ ctx.verify
+ end
+
def issue_cert(*args)
OpenSSL::TestUtils.issue_cert(*args)
end