Print an error if openssl is not installed, this is a workaround until we have a better way to show how missing optional dependencies affect the feature set.
git-svn-id: file:///home/svn/framework3/trunk@7116 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
35fcf8c2b2
commit
9e19121858
|
@ -45,6 +45,14 @@ if(RUBY_PLATFORM == 'java')
|
|||
end
|
||||
end
|
||||
|
||||
# Check for OpenSSL and print a warning if it is not installed
|
||||
begin
|
||||
require 'openssl'
|
||||
rescue ::LoadError
|
||||
$stderr.puts "*** The ruby-openssl library is not installed, many features will be disabled!"
|
||||
$stderr.puts "*** Examples: Meterpreter, SSL Sockets, SMB/NTLM Authentication, and more"
|
||||
end
|
||||
|
||||
|
||||
#
|
||||
# Check for the ugly 1.8.7 short-named constants bug
|
||||
|
|
Loading…
Reference in New Issue