24 #ifndef __UTIL_REFERENCE_CONFIG_H__ 25 #define __UTIL_REFERENCE_CONFIG_H__ 27 #define REFERENCE_SYSTEM_NAME_MAX 64 28 #define REFERENCE_CONTENT_NAME_MAX 1024 void SCRConfDeInitContext(DetectEngineCtx *)
Releases de_ctx resources related to Reference Config API.
FILE * SCRConfGenerateValidDummyReferenceConfigFD01(void)
Creates a dummy reference config, with all valid references, for testing purposes.
void SCReferenceConfDeinit(void)
void SCReferenceConfInit(void)
int SCRConfLoadReferenceConfigFile(DetectEngineCtx *, FILE *)
Loads the Reference info from the reference.config file.
main detection engine ctx
SCRConfReference * SCRConfGetReference(const char *, DetectEngineCtx *)
Gets the refernce config from the corresponding hash table stored in the Detection Engine Context's r...
FILE * SCRConfGenerateInValidDummyReferenceConfigFD02(void)
Creates a dummy reference config, with some valid references and a couple of invalid references...
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...
SCRConfReference * SCRConfAllocSCRConfReference(const char *, const char *)
Returns a new SCRConfReference instance. The reference string is converted into lowercase, before being assigned to the instance.
void SCRConfDeAllocSCRConfReference(SCRConfReference *)
Frees a SCRConfReference instance.
Holds a reference from the file - reference.config.
FILE * SCRConfGenerateInValidDummyReferenceConfigFD03(void)
Creates a dummy reference config, with all invalid references, for testing purposes.
struct SCRConfReference_ SCRConfReference
Holds a reference from the file - reference.config.
void SCRConfRegisterTests(void)
This function registers unit tests for Reference Config API.