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

[ruby/openssl] hmac: skip test_dup on OpenSSL 3.0 for now

EVP_MD_CTX_copy() doesn't seem to work as intended on HMAC EVP_MD_CTX
on OpenSSL 3.0.0 and causes a double free. I haven't found the root
problem yet, but let's skip the test case for now.

https://github.com/ruby/openssl/commit/4699581639
This commit is contained in:
Kazuki Yamaguchi 2021-12-11 16:30:30 +09:00
parent c1a7c6df18
commit 79a6f4349d

View file

@ -21,6 +21,7 @@ class OpenSSL::TestHMAC < OpenSSL::TestCase
end
def test_dup
pend "HMAC#initialize_copy is currently broken on OpenSSL 3.0.0" if openssl?(3, 0, 0)
h1 = OpenSSL::HMAC.new("KEY", "MD5")
h1.update("DATA")
h = h1.dup