1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
tenderlove 2010-12-09 17:18:54 +00:00
parent 2dc98cd0f3
commit 16a166dd35
5 changed files with 27 additions and 13 deletions

View file

@ -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