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

ruby-changes:37545

From: usa <ko1@a...>
Date: Tue, 17 Feb 2015 17:59:20 +0900 (JST)
Subject: [ruby-changes:37545] usa:r49626 (ruby_2_0_0): merge revision(s) 49525, 49575, 49579: [Backport #10839]

usa	2015-02-17 17:59:14 +0900 (Tue, 17 Feb 2015)

  New Revision: 49626

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

  Log:
    merge revision(s) 49525,49575,49579: [Backport #10839]
    
    test_cipher.rb: OpenSSL 1.0.2
    
    * test/openssl/test_cipher.rb (OpenSSL::TestCipher#test_ciphers):
      OpenSSL 1.0.2 does not allow wrap mode.

  Modified directories:
    branches/ruby_2_0_0/
  Modified files:
    branches/ruby_2_0_0/test/openssl/test_cipher.rb
    branches/ruby_2_0_0/version.h
Index: ruby_2_0_0/version.h
===================================================================
--- ruby_2_0_0/version.h	(revision 49625)
+++ ruby_2_0_0/version.h	(revision 49626)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1
 #define RUBY_VERSION "2.0.0"
 #define RUBY_RELEASE_DATE "2015-02-17"
-#define RUBY_PATCHLEVEL 632
+#define RUBY_PATCHLEVEL 633
 
 #define RUBY_RELEASE_YEAR 2015
 #define RUBY_RELEASE_MONTH 2
Index: ruby_2_0_0/test/openssl/test_cipher.rb
===================================================================
--- ruby_2_0_0/test/openssl/test_cipher.rb	(revision 49625)
+++ ruby_2_0_0/test/openssl/test_cipher.rb	(revision 49626)
@@ -104,7 +104,12 @@ class OpenSSL::TestCipher < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/test/openssl/test_cipher.rb#L104
     def test_ciphers
       OpenSSL::Cipher.ciphers.each{|name|
         next if /netbsd/ =~ RUBY_PLATFORM && /idea|rc5/i =~ name
-        assert(OpenSSL::Cipher::Cipher.new(name).is_a?(OpenSSL::Cipher::Cipher))
+        begin
+          assert_kind_of(OpenSSL::Cipher::Cipher, OpenSSL::Cipher::Cipher.new(name))
+        rescue OpenSSL::Cipher::CipherError => e
+          next if /wrap/ =~ name and e.message == 'wrap mode not allowed'
+          raise
+        end
       }
     end
 

Property changes on: ruby_2_0_0
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r49525,49575,49579


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

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