Skip to content

Commit

Permalink
SQUASH new lua registration
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjulien committed Jan 30, 2025
1 parent 0f7d016 commit 21315d8
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions tests/lua/lua-hashlib/test-hashing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local expected_md5 = "27170ec0609347c6a158bb5b694822a5"

function init (args)
local needs = {}
needs["dns.rrname"] = tostring(true)
return needs
end

Expand Down Expand Up @@ -127,7 +126,7 @@ function test_md5(name)
end

function match(args)
rrname = tostring(args["dns.rrname"])
rrname = DnsGetDnsRrname()

if not test_sha256(rrname) then
SCLogError("test_sha256 failed")
Expand Down
1 change: 1 addition & 0 deletions tests/lua/lua-hashlib/test.rules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
alert dns any any -> any any (msg:"TEST DNS LUA dns.rrname"; \
flow:to_server; \
dns.query.name; content: "www.suricata-ids.org"; \
lua:test-hashing.lua; sid:1; rev:1;)
1 change: 0 additions & 1 deletion tests/lua/lua-packetlib-01/packet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ local packet = require "suricata.packet"

function init (args)
local needs = {}
needs["packet"] = true
return needs
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ local packet = require "suricata.packet"

function init (args)
local needs = {}
needs["packet"] = true
return needs
end

Expand Down
1 change: 0 additions & 1 deletion tests/lua/lua-packetlib-03/packet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ local packet = require "suricata.packet"

function init (args)
local needs = {}
needs["packet"] = true
return needs
end

Expand Down
1 change: 0 additions & 1 deletion tests/lua/lua-packetlib-04-icmp-spdp/packet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ local packet = require "suricata.packet"

function init (args)
local needs = {}
needs["packet"] = true
return needs
end

Expand Down

0 comments on commit 21315d8

Please sign in to comment.