]> git.ipfire.org Git - people/ms/suricata.git/commit
app-layer/template: don't always enable if unittests built
authorJason Ish <jason.ish@oisf.net>
Fri, 12 Nov 2021 16:53:52 +0000 (10:53 -0600)
committerVictor Julien <vjulien@oisf.net>
Mon, 22 Nov 2021 12:55:25 +0000 (13:55 +0100)
commit1f6a15cdf3a65d9d911b734dc6a8142dec3b2a7c
tree10d21f6f97f845c85e7bdcb7e6958e6b73283916
parent6a470a84e799bbb9d86d7bf03a064a4b64a8ff2e
app-layer/template: don't always enable if unittests built

314ec77f88325a4e8989e898991b9af493cad3dc had the unintended side affect
of enabling the template parser and detection buffer if unittests were
enabled.

Fix this by using the new `Default` method for registering parsers.
However, the buffer still needs an explicit configuration check.

Also convert Notice debug messages to Debug to reduce output when in
unittest mode.  If we feel stronly this should still be Notice in the
template, that is a conversion we can make in the generation script when
generating a new parser.
src/app-layer-template.c
src/detect-template-buffer.c