From 3b48a96c797186685e9b03e09a88f191ce003bea Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 23 Jul 2014 02:35:06 +0000 Subject: [PATCH] RHEL7 disables MD5 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/openssl/test_x509cert.rb | 1 + test/openssl/test_x509req.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/test/openssl/test_x509cert.rb b/test/openssl/test_x509cert.rb index e2f0118167..f13d6456f4 100644 --- a/test/openssl/test_x509cert.rb +++ b/test/openssl/test_x509cert.rb @@ -146,6 +146,7 @@ class OpenSSL::TestX509Certificate < Test::Unit::TestCase 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 diff --git a/test/openssl/test_x509req.rb b/test/openssl/test_x509req.rb index c85b68a6c8..1a06ed7653 100644 --- a/test/openssl/test_x509req.rb +++ b/test/openssl/test_x509req.rb @@ -116,6 +116,7 @@ class OpenSSL::TestX509Request < Test::Unit::TestCase 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