зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
ed6886efb5
Коммит
8f0bce5ddc
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче