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

ruby-changes:34820

From: naruse <ko1@a...>
Date: Wed, 23 Jul 2014 11:35:10 +0900 (JST)
Subject: [ruby-changes:34820] naruse:r46903 (trunk): RHEL7 disables MD5

naruse	2014-07-23 11:35:06 +0900 (Wed, 23 Jul 2014)

  New Revision: 46903

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

  Log:
    RHEL7 disables MD5

  Modified files:
    trunk/test/openssl/test_x509cert.rb
    trunk/test/openssl/test_x509req.rb
Index: test/openssl/test_x509cert.rb
===================================================================
--- test/openssl/test_x509cert.rb	(revision 46902)
+++ test/openssl/test_x509cert.rb	(revision 46903)
@@ -146,6 +146,7 @@ class OpenSSL::TestX509Certificate < Tes https://github.com/ruby/ruby/blob/trunk/test/openssl/test_x509cert.rb#L146
     assert_equal(false, certificate_error_returns_false { cert.verify(@dsa512) })
     cert.subject = @ee1
     assert_equal(false, cert.verify(@rsa2048))
+  rescue OpenSSL::X509::CertificateError # RHEL7 disables MD5
   end
 
   def test_sign_and_verify_dsa
Index: test/openssl/test_x509req.rb
===================================================================
--- test/openssl/test_x509req.rb	(revision 46902)
+++ test/openssl/test_x509req.rb	(revision 46903)
@@ -116,6 +116,7 @@ class OpenSSL::TestX509Request < Test::U https://github.com/ruby/ruby/blob/trunk/test/openssl/test_x509req.rb#L116
     assert_equal(false, request_error_returns_false { req.verify(@dsa512) })
     req.subject = OpenSSL::X509::Name.parse("/C=JP/CN=FooBar")
     assert_equal(false, req.verify(@rsa2048))
+  rescue OpenSSL::X509::CertificateError # RHEL7 disables MD5
   end
 
   def test_sign_and_verify_dsa

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

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