mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
580 B
C
32 lines
580 B
C
/* Copyright (C) 2008 by Victor Julien <victor@inliniac.net> */
|
|
|
|
#include "vips.h"
|
|
#include "debug.h"
|
|
#include "detect.h"
|
|
#include "flow.h"
|
|
|
|
#include "detect-parse.h"
|
|
|
|
#include "detect-engine-siggroup.h"
|
|
#include "detect-engine-address.h"
|
|
|
|
DetectEngineCtx *DetectEngineCtxInit(void) {
|
|
DetectEngineCtx *de_ctx;
|
|
|
|
de_ctx = malloc(sizeof(DetectEngineCtx));
|
|
if (de_ctx == NULL) {
|
|
goto error;
|
|
}
|
|
|
|
memset(de_ctx,0,sizeof(DetectEngineCtx));
|
|
|
|
return de_ctx;
|
|
error:
|
|
return NULL;
|
|
}
|
|
|
|
void DetectEngineCtxFree(DetectEngineCtx *de_ctx) {
|
|
free(de_ctx);
|
|
}
|
|
|