modified nse_init.cc, added binlib and hashlib to NSE

This commit is contained in:
pgpickering 2008-07-31 14:21:28 +00:00
parent f07cebb87f
commit 3398e1f94e

View file

@ -7,6 +7,9 @@
// 3rd Party libs
#include "nse_pcrelib.h"
#include "nse_binlib.h"
#include "nse_hash.h"
#include "nbase.h"
#include "nmap.h"
@ -215,6 +218,8 @@ int init_lua (lua_State *L)
static const luaL_Reg libs[] = {
{NSE_PCRELIBNAME, luaopen_pcrelib}, // pcre library
{"nmap", luaopen_nmap} // nmap bindings
,{NSE_BINLIBNAME, luaopen_binlib}
,{NSE_HASHLIBNAME, luaopen_hashlib}
};
luaL_openlibs(L); // opens all standard libraries