Skip to content

Commit a3e59f4

Browse files
committed
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.
1 parent 2cd01d4 commit a3e59f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/openssl/test_digest.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_reset
5454
end
5555

5656
def test_digest_constants
57-
%w{MD4 MD5 RIPEMD160 SHA1 SHA224 SHA256 SHA384 SHA512}.each do |name|
57+
%w{MD5 SHA1 SHA224 SHA256 SHA384 SHA512}.each do |name|
5858
assert_not_nil(OpenSSL::Digest.new(name))
5959
klass = OpenSSL::Digest.const_get(name.tr('-', '_'))
6060
assert_not_nil(klass.new)

0 commit comments

Comments
 (0)