summaryrefslogtreecommitdiff
path: root/test/openssl/test_engine.rb
diff options
context:
space:
mode:
authoremboss <emboss@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-22 00:13:07 +0000
committeremboss <emboss@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-22 00:13:07 +0000
commit84e835fe4a68586fcb17adc2a6140c737c83dd62 (patch)
tree5c2011f59a8efdfc6a82ae5402b17c6176e8dccd /test/openssl/test_engine.rb
parent480c0f69bd7aa81eda0f5b269427442a8a45f6b3 (diff)
* ext/openssl/ossl_engine.c: Avoid double free of ENGINE reference.
* test/openssl/test_engine.rb: Add a test for it. Thanks to Ippei Obayashi for providing the patch. [ Ruby 1.9 - Bug #5062 ] [ruby-dev:44173] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl/test_engine.rb')
-rw-r--r--test/openssl/test_engine.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/openssl/test_engine.rb b/test/openssl/test_engine.rb
new file mode 100644
index 00000000000..6d90e34398a
--- /dev/null
+++ b/test/openssl/test_engine.rb
@@ -0,0 +1,15 @@
+require_relative 'utils'
+
+if defined?(OpenSSL)
+
+class OpenSSL::TestEngine < Test::Unit::TestCase
+
+ def test_engines_free # [ruby-dev:44173]
+ OpenSSL::Engine.load
+ OpenSSL::Engine.engines
+ OpenSSL::Engine.engines
+ end
+
+end
+
+end