Go to the documentation of this file.
24 #ifndef SURICATA_UTIL_REFERENCE_CONFIG_H
25 #define SURICATA_UTIL_REFERENCE_CONFIG_H
29 #define REFERENCE_SYSTEM_NAME_MAX 64
30 #define REFERENCE_CONTENT_NAME_MAX 1024
int SCRConfAddReference(DetectEngineCtx *de_ctx, const char *line)
Parses a line from the reference config file and adds it to Reference Config hash table DetectEngineC...
void SCReferenceConfDeinit(DetectEngineCtx *de_ctx)
void SCRConfDeInitContext(DetectEngineCtx *)
Releases de_ctx resources related to Reference Config API.
main detection engine ctx
int SCRConfLoadReferenceConfigFile(DetectEngineCtx *, FILE *)
Loads the Reference info from the reference.config file.
FILE * SCRConfGenerateInvalidDummyReferenceConfigFD02(void)
Creates a dummy reference config, with some valid references and a couple of invalid references,...
SCRConfReference * SCRConfAllocSCRConfReference(const char *, const char *)
Returns a new SCRConfReference instance. The reference string is converted into lowercase,...
struct SCRConfReference_ SCRConfReference
Holds a reference from the file - reference.config.
SCRConfReference * SCRConfGetReference(const char *, DetectEngineCtx *)
Gets the reference config from the corresponding hash table stored in the Detection Engine Context's ...
void SCReferenceConfInit(DetectEngineCtx *de_ctx)
void SCRConfRegisterTests(void)
This function registers unit tests for Reference Config API.
Holds a reference from the file - reference.config.
FILE * SCRConfGenerateInvalidDummyReferenceConfigFD03(void)
Creates a dummy reference config, with all invalid references, for testing purposes.
void SCRConfDeAllocSCRConfReference(SCRConfReference *)
Frees a SCRConfReference instance.
FILE * SCRConfGenerateValidDummyReferenceConfigFD01(void)
Creates a dummy reference config, with all valid references, for testing purposes.