From: Victor Julien Date: Wed, 6 Jul 2016 10:58:37 +0000 (+0200) Subject: lua output: expose smtp functions to output scripts X-Git-Tag: suricata-3.1.1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=928cb1eba9cd6ee2cef801d1c5c09e5a094e8305;p=thirdparty%2Fsuricata.git lua output: expose smtp functions to output scripts --- diff --git a/src/output-lua.c b/src/output-lua.c index 77a7811f0d..e3d4556660 100644 --- a/src/output-lua.c +++ b/src/output-lua.c @@ -61,6 +61,7 @@ #include "util-lua-dns.h" #include "util-lua-tls.h" #include "util-lua-ssh.h" +#include "util-lua-smtp.h" #define MODULE_NAME "LuaLog" @@ -710,6 +711,7 @@ static lua_State *LuaScriptSetup(const char *filename) LuaRegisterDnsFunctions(luastate); LuaRegisterTlsFunctions(luastate); LuaRegisterSshFunctions(luastate); + LuaRegisterSmtpFunctions(luastate); if (lua_pcall(luastate, 0, 0, 0) != 0) { SCLogError(SC_ERR_LUA_ERROR, "couldn't run script 'setup' function: %s", lua_tostring(luastate, -1));