From: "akira yamada / やまだあきら" Date: 2008-06-05T16:44:11+09:00 Subject: [ruby-dev:34944] Re: Ruby 1.8.7-preview4 test-all failed in OpenSSL::TestSSL akira yamada / やまだあきら さんは書きました: >>  現在の ruby_1_8_7 ブランチ先端と Debian sid 最新パッケージ >> でも再現するのでしょうか。 > > はい、再現します。 以下のように変更を加えるとテストをパスするようです。 (再び外しているかもしれませんが。) --- ext/openssl/ossl_ssl.c (revision 16835) +++ ext/openssl/ossl_ssl.c (working copy) @@ -1466,6 +1468,7 @@ ossl_ssl_def_const(OP_NO_SSLv2); ossl_ssl_def_const(OP_NO_SSLv3); ossl_ssl_def_const(OP_NO_TLSv1); + ossl_ssl_def_const(OP_NO_TICKET); ossl_ssl_def_const(OP_PKCS1_CHECK_1); ossl_ssl_def_const(OP_PKCS1_CHECK_2); ossl_ssl_def_const(OP_NETSCAPE_CA_DN_BUG); --- test/openssl/test_ssl.rb (revision 16835) +++ test/openssl/test_ssl.rb (working copy) @@ -499,7 +499,9 @@ start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true, :ctx_proc => ctx_proc, :server_proc => server_proc) do |server, port| 10.times do |i| sock = TCPSocket.new("127.0.0.1", port) - ssl = OpenSSL::SSL::SSLSocket.new(sock) + ctx = OpenSSL::SSL::SSLContext.new + ctx.options = OpenSSL::SSL::OP_NO_TICKET + ssl = OpenSSL::SSL::SSLSocket.new(sock, ctx) ssl.sync_close = true ssl.session = first_session if first_session ssl.connect -- ay