Go to the documentation of this file.
18 #include "../suricata-common.h"
20 #include "../detect-engine.h"
22 #include "../detect-transform-xor.h"
24 #include "../util-unittest.h"
30 static int DetectTransformXorParseTest01(
void)
46 static int DetectTransformXorParseTest02(
void)
52 "alert http any any -> any any (msg:\"HTTP with xor\"; http.request_line; "
53 "xor:\"0a0DC8ff\"; content:\"/z4d4kWk.jpg\"; sid:1;)");
65 UtRegisterTest(
"DetectTransformXorParseTest01", DetectTransformXorParseTest01);
66 UtRegisterTest(
"DetectTransformXorParseTest02", DetectTransformXorParseTest02);
#define FAIL_IF_NULL(expr)
Fail a test if expression evaluates to NULL.
void UtRegisterTest(const char *name, int(*TestFn)(void))
Register unit test.
main detection engine ctx
void DetectEngineCtxFree(DetectEngineCtx *)
Free a DetectEngineCtx::
Signature * DetectEngineAppendSig(DetectEngineCtx *, const char *)
Parse and append a Signature into the Detection Engine Context signature list.
#define FAIL_IF_NOT_NULL(expr)
Fail a test if expression evaluates to non-NULL.
#define PASS
Pass the test.
DetectEngineCtx * DetectEngineCtxInit(void)