mirror of
https://github.com/nmap/nmap.git
synced 2026-01-02 04:49:02 +00:00
Lua 5.2 upgrade [1] for NSE.
[1] http://seclists.org/nmap-dev/2012/q2/34
This commit is contained in:
@@ -3,15 +3,17 @@
|
||||
--
|
||||
-- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html
|
||||
|
||||
module(... or "pop3",package.seeall)
|
||||
local base64 = require "base64"
|
||||
local comm = require "comm"
|
||||
local nmap = require "nmap"
|
||||
local openssl = require "openssl"
|
||||
local stdnse = require "stdnse"
|
||||
local string = require "string"
|
||||
local table = require "table"
|
||||
_ENV = stdnse.module("pop3", stdnse.seeall)
|
||||
|
||||
local HAVE_SSL = false
|
||||
|
||||
require 'base64'
|
||||
require 'bit'
|
||||
require 'stdnse'
|
||||
require 'comm'
|
||||
|
||||
if pcall(require,'openssl') then
|
||||
HAVE_SSL = true
|
||||
end
|
||||
@@ -229,3 +231,5 @@ if not HAVE_SSL then
|
||||
login_sasl_crammd5 = no_ssl
|
||||
end
|
||||
|
||||
|
||||
return _ENV;
|
||||
|
||||
Reference in New Issue
Block a user