From 8bf5284c1e280e55678bed140fae940703aa8047 Mon Sep 17 00:00:00 2001 From: kazu Date: Tue, 9 Sep 2008 11:41:45 +0000 Subject: [PATCH] * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@19268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ test/openssl/test_ssl.rb | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 81e343d101..378dfe7874 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Sep 9 20:40:15 2008 Kazuhiro NISHIYAMA + + * 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] + Tue Sep 9 20:34:26 2008 Tanaka Akira * transcode.c (rb_econv_t): last_trans_index removed. diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index ea959892f3..186d855633 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