Skip to content

Commit

Permalink
* test/openssl/test_ssl.rb (OpenSSL#test_client_session):
Browse files Browse the repository at this point in the history
  Debian's openssl 0.9.8g-13 failed at assert(ssl.session_reused?),
  when use default SSLContext. [ruby-dev:36167]
  backported r19268 from trunk. [ruby-core:22843]


git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@22910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
znz committed Mar 12, 2009
1 parent 8e22350 commit d79a80d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ChangeLog
@@ -1,3 +1,10 @@
Thu Mar 12 15:26:02 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>

* 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]
backported r19268 from trunk. [ruby-core:22843]

Thu Mar 12 13:02:12 2009 NAKAMURA Usaku <usa@ruby-lang.org>

* mkconfig.rb: patchlevel is sometimes minus.
Expand Down
5 changes: 4 additions & 1 deletion test/openssl/test_ssl.rb
Expand Up @@ -431,7 +431,10 @@ def test_client_session
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
Expand Down

0 comments on commit d79a80d

Please sign in to comment.