From 5a86e57d415fd20d171e57e109d69ab532da73e4 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 14 Aug 2014 16:37:37 +0200 Subject: [PATCH] detect-lua: register all 'output' keywords as well Register all keywords available to output scripts to the detect scripts as well. --- src/detect-lua-extensions.c | 4 ++++ 1 file changed, 4 insertions(+) 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; }