diff options
author | Kazuki Yamaguchi <[email protected]> | 2020-05-18 02:17:28 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <[email protected]> | 2021-10-23 13:38:37 +0900 |
commit | 54047b6d0646b38cceaa2546c9ae57b5d9c4c988 (patch) | |
tree | 0fff960c0c6ac53d390e2dcc52a6f008483e853b /test | |
parent | 5a8e1c520ac71c76f6424f9ef5aef64a79527f78 (diff) |
[ruby/openssl] test/openssl/test_digest: do not test constants for legacy algorithms
Remove availability test for MD4 and RIPEMD160 as they are considered
legacy and may be missing depending on the compile-time options of
OpenSSL. OpenSSL 3.0 by default disables them.
https://github.com/ruby/openssl/commit/a3e59f4c2e
Diffstat (limited to 'test')
-rw-r--r-- | test/openssl/test_digest.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/openssl/test_digest.rb b/test/openssl/test_digest.rb index 8d7046e831..84c128c12f 100644 --- a/test/openssl/test_digest.rb +++ b/test/openssl/test_digest.rb @@ -54,7 +54,7 @@ class OpenSSL::TestDigest < OpenSSL::TestCase end def test_digest_constants - %w{MD4 MD5 RIPEMD160 SHA1 SHA224 SHA256 SHA384 SHA512}.each do |name| + %w{MD5 SHA1 SHA224 SHA256 SHA384 SHA512}.each do |name| assert_not_nil(OpenSSL::Digest.new(name)) klass = OpenSSL::Digest.const_get(name.tr('-', '_')) assert_not_nil(klass.new) |