diff options
author | Bart de Water <bartdewater@gmail.com> | 2020-04-19 11:14:36 -0400 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2020-05-13 15:47:51 +0900 |
commit | 0b2c70eaa1e8e41fcb6332b22b084dabb81e637c (patch) | |
tree | f12d0c69a0b21c56b0df53ecd4615e2d6418d1f0 /test/openssl/test_engine.rb | |
parent | 3f8665fe0ed5331aa723ddecbf6ad3728931c08d (diff) | |
download | ruby-0b2c70eaa1e8e41fcb6332b22b084dabb81e637c.tar.gz |
[ruby/openssl] Look up digest by name instead of constant
https://github.com/ruby/openssl/commit/b28fb2f05c
Diffstat (limited to 'test/openssl/test_engine.rb')
-rw-r--r-- | test/openssl/test_engine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/openssl/test_engine.rb b/test/openssl/test_engine.rb index 232ba866a5..1ede6ed086 100644 --- a/test/openssl/test_engine.rb +++ b/test/openssl/test_engine.rb @@ -47,7 +47,7 @@ class OpenSSL::TestEngine < OpenSSL::TestCase digest = engine.digest("SHA1") assert_not_nil(digest) data = "test" - assert_equal(OpenSSL::Digest::SHA1.digest(data), digest.digest(data)) + assert_equal(OpenSSL::Digest.digest('SHA1', data), digest.digest(data)) end; end |