summaryrefslogtreecommitdiff
path: root/sample
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
commitec5ff1197a9644c161b3baf6980d48b42926adbc (patch)
treed1ee731ec48c7556143bc2825a4af2ae38cbc8fd /sample
parent282bf28ac3cc534c486bc79ca0c0a589264b2961 (diff)
* sample/openssl/c_rehash.rb: Use digest/md5 instead of obsolete md5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-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 386eef5f24..afbb654517 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