aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-10-18 17:39:53 -0500
committerJack Nagel2014-10-18 17:39:53 -0500
commitf8c0c27566f90423b21c545fa296f3780f51426f (patch)
tree154958251f03dd165a2c82239950412a7db7c390 /Library
parent93c71bafca01fe14e01843572106eb9dcb909609 (diff)
downloadbrew-f8c0c27566f90423b21c545fa296f3780f51426f.tar.bz2
Deprecate insecure download strategies
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 4b9aba93c..4ac5bb4f1 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -630,6 +630,12 @@ class ResourceAuditor
def audit_download_strategy
return unless using
+ if using == :ssl3 || using == CurlSSL3DownloadStrategy
+ problem "The SSL3 download strategy is deprecated, please choose a different URL"
+ elsif using == CurlUnsafeDownloadStrategy
+ problem "#{using.name} is deprecated, please choose a different URL"
+ end
+
url_strategy = DownloadStrategyDetector.detect(url)
using_strategy = DownloadStrategyDetector.detect('', using)