Skip to content
Snippets Groups Projects
Commit 7303a55c authored by Tim D. Smith's avatar Tim D. Smith Committed by GitHub
Browse files

Merge pull request #866 from tdsmith/audit-libressl

Catch system libressl in openssl audit as well
parents 78204898 a4b4b9cd
No related branches found
No related tags found
No related merge requests found
......@@ -29,13 +29,14 @@ module FormulaCellarChecks
keg = Keg.new(formula.prefix)
system_openssl = keg.mach_o_files.select do |obj|
dlls = obj.dynamically_linked_libraries
dlls.any? { |dll| %r{/usr/lib/lib(crypto|ssl)\.(\d\.)*dylib}.match dll }
dlls.any? { |dll| %r{/usr/lib/lib(crypto|ssl|tls)\..*dylib}.match dll }
end
return if system_openssl.empty?
<<-EOS.undent
object files were linked against system openssl
These object files were linked against the deprecated system OpenSSL.
These object files were linked against the deprecated system OpenSSL or
the system's private LibreSSL.
Adding `depends_on "openssl"` to the formula may help.
#{system_openssl * "\n "}
EOS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment