From: Jason Ish Date: Tue, 6 May 2025 20:43:52 +0000 (-0600) Subject: tests/lua-output-smtp: update for lua lib X-Git-Tag: suricata-7.0.11~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68909a8134689c7ea1f7100ed00a93f78bdfd8c3;p=thirdparty%2Fsuricata-verify.git tests/lua-output-smtp: update for lua lib --- diff --git a/tests/lua-output-smtp/smtp.lua b/tests/lua-output-smtp/smtp.lua index ec10f98f5..6f12108aa 100644 --- a/tests/lua-output-smtp/smtp.lua +++ b/tests/lua-output-smtp/smtp.lua @@ -1,5 +1,6 @@ -- simple fast-log to file lua module local packet = require "suricata.packet" +local smtp = require "suricata.smtp" name = "smtp_lua.log" @@ -19,8 +20,9 @@ end function log(args) p = packet.get() ts = p:timestring_legacy() - from = SMTPGetMailFrom() - to = SMTPGetRcptList() + local smtptx = smtp.get_tx() + local from = smtptx:get_mail_from() + local to = smtptx:get_rcpt_list() to_string = "" for key,val in pairs(to) do to_string = to_string .. val