1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
knu 2006-10-05 19:31:50 +00:00
parent 282bf28ac3
commit ec5ff1197a
2 changed files with 6 additions and 2 deletions

View file

@ -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