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:
@@ -82,13 +82,12 @@
|
||||
|
||||
local bin = require "bin"
|
||||
local nmap = require "nmap"
|
||||
local openssl = require "openssl"
|
||||
local stdnse = require "stdnse"
|
||||
local string = require "string"
|
||||
local table = require "table"
|
||||
_ENV = stdnse.module("smbauth", stdnse.seeall)
|
||||
|
||||
have_ssl = (nmap.have_ssl() and pcall(require, "openssl"))
|
||||
local openssl, have_ssl = pcall(require, "openssl")
|
||||
|
||||
-- Constants
|
||||
local NTLMSSP_NEGOTIATE = 0x00000001
|
||||
|
||||
Reference in New Issue
Block a user