summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-09 11:41:45 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-09 11:41:45 +0000
commit5cf99e7f973cac550716334fd5ef6f26a6c04eed (patch)
tree73ee71f1aea62110ef0004b42dc47ed4faae47d5 /test
parent10d6d0e58ae3161dd1713cb91c75ef5e8b38baad (diff)
downloadruby-5cf99e7f973cac550716334fd5ef6f26a6c04eed.tar.gz
ruby-5cf99e7f973cac550716334fd5ef6f26a6c04eed.tar.xz
ruby-5cf99e7f973cac550716334fd5ef6f26a6c04eed.zip
* test/openssl/test_ssl.rb (OpenSSL#test_client_session):
Debian's openssl 0.9.8g-13 failed at assert(ssl.session_reused?), when use default SSLContext. [ruby-dev:36167] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/openssl/test_ssl.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb
index ea959892f..186d85563 100644
--- a/test/openssl/test_ssl.rb
+++ b/test/openssl/test_ssl.rb
@@ -439,7 +439,10 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true) do |server, port|
2.times do
sock = TCPSocket.new("127.0.0.1", port)
- ssl = OpenSSL::SSL::SSLSocket.new(sock)
+ # Debian's openssl 0.9.8g-13 failed at assert(ssl.session_reused?),
+ # when use default SSLContext. [ruby-dev:36167]
+ ctx = OpenSSL::SSL::SSLContext.new("TLSv1")
+ ssl = OpenSSL::SSL::SSLSocket.new(sock, ctx)
ssl.sync_close = true
ssl.session = last_session if last_session
ssl.connect