]> 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>
Mon, 29 Jun 2020 11:17:09 +0000 (07:17 -0400)
commit596875fa68af18746abbbd9e307d14a93f23c3f7
treeba5b7cd8f49923d67b41a8167ccc99880159321f
parent06f414d66de9fd8b64ad443aaa5d10e5e13ec335
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.
src/detect.h