summaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog4
-rw-r--r--sample/openssl/c_rehash.rb4
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 7836488e8f8..237a0fd7f36 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,10 @@
-Fri Oct 6 04:21:23 2006 Akinori MUSHA <knu@iDaemons.org>
+Fri Oct 6 04:27:40 2006 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/lib/md5.rb, ext/digest/lib/sha1.rb: Remove those
compatibility stub libraries.
+ * sample/openssl/c_rehash.rb: Use digest/md5 instead of obsolete md5.
+
Fri Oct 6 04:09:51 2006 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/digest.c: Make hexdigest() always call digest() internally.
diff --git a/sample/openssl/c_rehash.rb b/sample/openssl/c_rehash.rb
index 386eef5f24e..afbb6545178 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