[前][次][番号順一覧][スレッド一覧]

ruby-changes:42433

From: nobu <ko1@a...>
Date: Thu, 7 Apr 2016 08:14:07 +0900 (JST)
Subject: [ruby-changes:42433] nobu:r54506 (trunk): test_ssl.rb: skip unsupported ciphers

nobu	2016-04-07 09:10:41 +0900 (Thu, 07 Apr 2016)

  New Revision: 54506

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54506

  Log:
    test_ssl.rb: skip unsupported ciphers
    
    * test/openssl/test_ssl.rb (test_get_ephemeral_key): skip
      unsupported ciphers.  [GH-1318]

  Modified files:
    trunk/test/openssl/test_ssl.rb
Index: test/openssl/test_ssl.rb
===================================================================
--- test/openssl/test_ssl.rb	(revision 54505)
+++ test/openssl/test_ssl.rb	(revision 54506)
@@ -1181,7 +1181,12 @@ end https://github.com/ruby/ruby/blob/trunk/test/openssl/test_ssl.rb#L1181
     start_server(OpenSSL::SSL::VERIFY_NONE, true, :ctx_proc => conf_proc) do |server, port|
       ciphers.each do |cipher, ephemeral|
         ctx = OpenSSL::SSL::SSLContext.new
-        ctx.ciphers = cipher
+        begin
+          ctx.ciphers = cipher
+        rescue OpenSSL::SSL::SSLError => e
+          next if /no cipher match/ =~ e.message
+          raise
+        end
         server_connect(port, ctx) do |ssl|
           if ephemeral
             assert_instance_of(ephemeral, ssl.tmp_key)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]