summaryrefslogtreecommitdiffstats
path: root/test/openssl/test_ns_spki.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/openssl/test_ns_spki.rb')
-rw-r--r--test/openssl/test_ns_spki.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/openssl/test_ns_spki.rb b/test/openssl/test_ns_spki.rb
index 052507de..ed3be86e 100644
--- a/test/openssl/test_ns_spki.rb
+++ b/test/openssl/test_ns_spki.rb
@@ -22,7 +22,7 @@ class OpenSSL::TestNSSPI < OpenSSL::TestCase
spki = OpenSSL::Netscape::SPKI.new
spki.challenge = "RandomString"
spki.public_key = key1.public_key
- spki.sign(key1, OpenSSL::Digest::SHA1.new)
+ spki.sign(key1, OpenSSL::Digest.new('SHA1'))
assert(spki.verify(spki.public_key))
assert(spki.verify(key1.public_key))
assert(!spki.verify(key2.public_key))