summaryrefslogtreecommitdiff
path: root/sample/openssl
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-05 19:31:50 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-05 19:31:50 +0000
commit8f0bce5ddc9263b02d34f31bf0874a4cee3bc74e (patch)
tree59c1b5f59ec77f5ffacf7e5f00ca1a7840116dcd /sample/openssl
parented6886efb5b6096951f01d4e64b88f73edb7f4d8 (diff)
* sample/openssl/c_rehash.rb: Use digest/md5 instead of obsolete md5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/openssl')
-rw-r--r--sample/openssl/c_rehash.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/openssl/c_rehash.rb b/sample/openssl/c_rehash.rb
index 386eef5..afbb654 100644
--- a/sample/openssl/c_rehash.rb
+++ b/sample/openssl/c_rehash.rb
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
require 'openssl'
-require 'md5'
+require 'digest/md5'
class CHashDir
include Enumerable
@@ -161,7 +161,7 @@ private
end
def fingerprint(der)
- MD5.hexdigest(der).upcase
+ Digest::MD5.hexdigest(der).upcase
end
end