]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/transform: Add transform "validate" function
authorJeff Lucovsky <jeff@lucovsky.org>
Thu, 11 Jun 2020 12:31:55 +0000 (08:31 -0400)
committerJeff Lucovsky <jeff@lucovsky.org>
Sun, 5 Jul 2020 15:40:54 +0000 (11:40 -0400)
commit00ffcf1012178a9dfeb1559ec826cde60273830b
treeb3277cb32b206bbd67f4733ce2286f5d5104f2c5
parent03d7cc74c797908a493ed6d5e5c03e5a193abef7
detect/transform: Add transform "validate" function

This commit adds an (optional) entry for a validation function. The
validation function, if present, will be used during rule processing.

Its role is to determine if the arguments are compatible with the
transform. E.g., a content string of "this string has whitespace" is not
compatible with the `strip_whitespace` transform.

(cherry picked from commit 596875fa68af18746abbbd9e307d14a93f23c3f7)
src/detect.h