From 928cb1eba9cd6ee2cef801d1c5c09e5a094e8305 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 6 Jul 2016 12:58:37 +0200 Subject: [PATCH] lua output: expose smtp functions to output scripts --- src/output-lua.c | 2 ++ 1 file changed, 2 insertions(+) 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));