diff options
| author | Xu Cheng | 2015-04-07 22:01:59 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-04-07 22:48:55 +0800 |
| commit | e58735a762713402d6b7cbd7d5a315aa4f5556a8 (patch) | |
| tree | 5af91edb7255e4e879a1a17f731e5203c952005f /Library | |
| parent | e2c6f8600b5c145c2d62c826726dbf12d2c0bd85 (diff) | |
| download | homebrew-e58735a762713402d6b7cbd7d5a315aa4f5556a8.tar.bz2 | |
stop supporting md5 checksum
This prevents a downgrade attack.
Closes #38433.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/compat/md5.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Homebrew/compat/md5.rb b/Library/Homebrew/compat/md5.rb index eb8eb0232..6c49f5fe2 100644 --- a/Library/Homebrew/compat/md5.rb +++ b/Library/Homebrew/compat/md5.rb @@ -18,11 +18,9 @@ end class Pathname def md5 - require 'digest/md5' - opoo <<-EOS.undent - MD5 support is deprecated and will be removed in a future version. - Please switch this formula to #{Checksum::TYPES.map { |t| t.to_s.upcase } * ' or '}. + odie <<-EOS.undent + MD5 support has been dropped for security reasons. + Please switch this formula to SHA256. EOS - incremental_hash(Digest::MD5) end end |
