/** * \brief Loads the Classtype info from the classification.config file. * * The classification.config file contains the different classtypes, * that can be used to label Signatures. Each line of the file should * have the following format - * classtype_name, classtype_description, priority * None of the above parameters should hold a quote inside the file. * * \param de_ctx Pointer to the Detection Engine Context that should be updated * with Classtype information. */ void SCClassConfLoadClassficationConfigFile(DetectEngineCtx *de_ctx) { if (SCClassConfInitContextAndLocalResources(de_ctx) == -1) { SCLogInfo("Please check the \"classification-file\" option in your suricata.yaml file"); exit(EXIT_FAILURE); } SCClassConfParseFile(de_ctx); SCClassConfDeInitLocalResources(de_ctx); return; }
/** * \brief Loads the Classtype info from the classification.config file. * * The classification.config file contains the different classtypes, * that can be used to label Signatures. Each line of the file should * have the following format - * classtype_name, classtype_description, priority * None of the above parameters should hold a quote inside the file. * * \param de_ctx Pointer to the Detection Engine Context that should be updated * with Classtype information. */ void SCClassConfLoadClassficationConfigFile(DetectEngineCtx *de_ctx) { if (SCClassConfInitContext(de_ctx) == -1) { SCLogDebug("Error initializing classification config API"); return; } SCClassConfParseFile(de_ctx); SCClassConfDeInitContext(de_ctx); return; }