diff options
author | emboss <emboss@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-02 00:03:29 +0000 |
---|---|---|
committer | emboss <emboss@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-02 00:03:29 +0000 |
commit | a5615faba16106e17a66d225bf7ad7782615af94 (patch) | |
tree | 4fca2f7a15a4eba956716b0e3ca003bf05e4038f /test/openssl/test_ocsp.rb | |
parent | 5ce01ed12fd1b74db5238c13c9d4428574a61c7b (diff) | |
download | ruby-a5615faba16106e17a66d225bf7ad7782615af94.tar.gz |
* 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
Diffstat (limited to 'test/openssl/test_ocsp.rb')
-rw-r--r-- | test/openssl/test_ocsp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/openssl/test_ocsp.rb b/test/openssl/test_ocsp.rb index 19c37e4d32..b42b57d498 100644 --- a/test/openssl/test_ocsp.rb +++ b/test/openssl/test_ocsp.rb @@ -31,7 +31,7 @@ class OpenSSL::TestOCSP < Test::Unit::TestCase cid = OpenSSL::OCSP::CertificateId.new(@cert, @ca_cert, OpenSSL::Digest::SHA256.new) assert_kind_of OpenSSL::OCSP::CertificateId, cid assert_equal @cert.serial, cid.serial - end + end if defined?(OpenSSL::Digest::SHA256) def test_new_ocsp_request request = OpenSSL::OCSP::Request.new |