From: Victor Julien Date: Thu, 14 Aug 2014 14:37:37 +0000 (+0200) Subject: detect-lua: register all 'output' keywords as well X-Git-Tag: suricata-2.1beta2~115 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a86e57d415fd20d171e57e109d69ab532da73e4;p=thirdparty%2Fsuricata.git detect-lua: register all 'output' keywords as well Register all keywords available to output scripts to the detect scripts as well. --- diff --git a/src/detect-lua-extensions.c b/src/detect-lua-extensions.c index 222b6e55b3..a83be283ef 100644 --- a/src/detect-lua-extensions.c +++ b/src/detect-lua-extensions.c @@ -63,6 +63,8 @@ #ifdef HAVE_LUA #include "util-lua.h" +#include "util-lua-common.h" +#include "util-lua-http.h" static const char luaext_key_ld[] = "suricata:luajitdata"; static const char luaext_key_det_ctx[] = "suricata:det_ctx"; @@ -605,6 +607,8 @@ int LuaRegisterExtensions(lua_State *lua_state) lua_pushcfunction(lua_state, LuaDecrFlowint); lua_setglobal(lua_state, "ScFlowintDecr"); + LuaRegisterFunctions(lua_state); + LuaRegisterHttpFunctions(lua_state); return 0; }