mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
SSL overhaul fixing OpenSSL related problems when SSL has not been compiled in
* replace require function calls with stndse.silent_require * fixed a bug in nse_main that would fail creating scripts.db when a script fails to load * reworked some code to provide limited functionality even though SSL is not present
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
local bin = require "bin"
|
||||
local bit = require "bit"
|
||||
local nmap = require "nmap"
|
||||
local openssl = require "openssl"
|
||||
local stdnse = require "stdnse"
|
||||
local string = require "string"
|
||||
local table = require "table"
|
||||
@@ -26,11 +25,7 @@ _ENV = stdnse.module("mysql", stdnse.seeall)
|
||||
|
||||
local tab = require('tab')
|
||||
|
||||
local HAVE_SSL = false
|
||||
|
||||
if pcall(require,'openssl') then
|
||||
HAVE_SSL = true
|
||||
end
|
||||
local HAVE_SSL, openssl = pcall(require,'openssl')
|
||||
|
||||
Capabilities =
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user