mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* test/openssl/test_ocsp.rb
* test/openssl/test_x509_cert.rb: Perform SHA-256 tests only if supported by the available OpenSSL version. Versions < 0.9.8 don't support it. [ruby-core:37724] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5ce01ed12f
commit
a5615faba1
3 changed files with 9 additions and 2 deletions
|
@ -197,7 +197,7 @@ class OpenSSL::TestX509Certificate < Test::Unit::TestCase
|
|||
cert = issue_cert(@ca, @dsa256, 1, Time.now, Time.now+3600, [],
|
||||
nil, nil, OpenSSL::Digest::SHA1.new)
|
||||
assert_equal("dsaWithSHA1", cert.signature_algorithm)
|
||||
end
|
||||
end if defined?(OpenSSL::Digest::SHA256)
|
||||
|
||||
def test_check_private_key
|
||||
cert = issue_cert(@ca, @rsa2048, 1, Time.now, Time.now+3600, [],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue