mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +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:
@@ -107,7 +107,6 @@ local bit = require "bit"
|
||||
local math = require "math"
|
||||
local match = require "match"
|
||||
local nmap = require "nmap"
|
||||
local openssl = require "openssl"
|
||||
local os = require "os"
|
||||
local shortport = require "shortport"
|
||||
local smb = require "smb"
|
||||
@@ -132,7 +131,7 @@ _ENV = stdnse.module("mssql", stdnse.seeall)
|
||||
--
|
||||
-- (Patrik Karlsson, Chris Woodbury)
|
||||
|
||||
HAVE_SSL = (nmap.have_ssl() and pcall(require, "openssl"))
|
||||
local openssl, HAVE_SSL = pcall(require, "openssl")
|
||||
|
||||
do
|
||||
namedpipes = smb.namedpipes
|
||||
|
||||
Reference in New Issue
Block a user