summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authortenderlove <tenderlove@ruby-lang.org>2010-11-14 21:46:08 +0000
committertenderlove <tenderlove@ruby-lang.org>2010-11-14 21:46:08 +0000
commit1c0ec8d454b3be08ef1d426e61885063ae52bfaa (patch)
treea967a22c0072844fd7d4a7ebe0fe60cae2386a12 /test
parentd4c3c72f612d4e3aaaa8a888c303756f1fc2281c (diff)
downloadruby-openssl-history-1c0ec8d454b3be08ef1d426e61885063ae52bfaa.tar.gz
* etc/openssl/ossl_ssl.c (ossl_ssl_get_cert): raise exception if
pointer is invalid. Thanks Ippei Obayashi! [ruby-dev:42573] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/test_ssl.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_ssl.rb b/test/test_ssl.rb
index 73c35c0..2d56a70 100644
--- a/test/test_ssl.rb
+++ b/test/test_ssl.rb
@@ -160,6 +160,10 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
assert_equal(ctx.setup, nil)
end
+ def test_not_started_session
+ OpenSSL::SSL::SSLSocket.new(STDIN).cert
+ end
+
def test_ssl_read_nonblock
start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true) { |server, port|
sock = TCPSocket.new("127.0.0.1", port)