aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat
diff options
context:
space:
mode:
authorXu Cheng2015-04-07 22:01:59 +0800
committerXu Cheng2015-04-07 22:48:55 +0800
commitc9e45b9c268bfe1ad6922b27a97c7f4272603a80 (patch)
tree9ddde20ba0053db12ef94e52e858077ca93e528c /Library/Homebrew/compat
parent631742c5277e50fe130f58d1c8d1fb7ae491b157 (diff)
downloadbrew-c9e45b9c268bfe1ad6922b27a97c7f4272603a80.tar.bz2
stop supporting md5 checksum
This prevents a downgrade attack. Closes Homebrew/homebrew#38433. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/compat')
-rw-r--r--Library/Homebrew/compat/md5.rb8
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