mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Use defines for library names "nmap" and "stdnse.c"
This commit is contained in:
@@ -279,13 +279,13 @@ static void set_nmap_libraries (lua_State *L)
|
|||||||
{
|
{
|
||||||
static const luaL_Reg libs[] = {
|
static const luaL_Reg libs[] = {
|
||||||
{NSE_PCRELIBNAME, luaopen_pcrelib}, // pcre library
|
{NSE_PCRELIBNAME, luaopen_pcrelib}, // pcre library
|
||||||
{"nmap", luaopen_nmap}, // nmap bindings
|
{NSE_NMAPLIBNAME, luaopen_nmap}, // nmap bindings
|
||||||
{NSE_BINLIBNAME, luaopen_binlib},
|
{NSE_BINLIBNAME, luaopen_binlib},
|
||||||
{BITLIBNAME, luaopen_bit}, // bit library
|
{BITLIBNAME, luaopen_bit}, // bit library
|
||||||
#ifdef HAVE_OPENSSL
|
#ifdef HAVE_OPENSSL
|
||||||
{OPENSSLLIBNAME, luaopen_openssl}, // openssl bindings
|
{OPENSSLLIBNAME, luaopen_openssl}, // openssl bindings
|
||||||
#endif
|
#endif
|
||||||
{"stdnse.c", luaopen_stdnse_c},
|
{NSE_STDNSELIBNAME, luaopen_stdnse_c},
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
#ifndef NSE_NMAPLIB
|
#ifndef NSE_NMAPLIB
|
||||||
#define NSE_NMAPLIB
|
#define NSE_NMAPLIB
|
||||||
|
|
||||||
|
#define NSE_NMAPLIBNAME "nmap"
|
||||||
|
#define NSE_STDNSELIBNAME "stdnse.c"
|
||||||
|
|
||||||
class Target;
|
class Target;
|
||||||
class Port;
|
class Port;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user