1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_x509req.rb: fix for RHEL7

* test/openssl/test_x509req.rb (test_sign_and_verify_rsa_md5): fix
  exception to be rescued.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-07-23 05:37:09 +00:00
parent 3b48a96c79
commit 981ab867f7

View file

@ -116,7 +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
rescue OpenSSL::X509::RequestError # RHEL7 disables MD5
end
def test_sign_and_verify_dsa