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