|
|
|
|
|
|
|
|
#ifndef _MN_Scanner |
|
|
#ifndef _MN_Scanner |
|
|
#define _MN_Scanner |
|
|
#define _MN_Scanner |
|
|
|
|
|
|
|
|
#include "FilterChain.hpp" |
|
|
|
|
|
#include "snf_engine.hpp" |
|
|
|
|
|
|
|
|
#include "SNFMulti/FilterChain.hpp" |
|
|
|
|
|
#include "SNFMulti/snf_engine.hpp" |
|
|
|
|
|
|
|
|
|
|
|
#include <string> |
|
|
|
|
|
|
|
|
|
|
|
namespace SNFMulti { |
|
|
|
|
|
|
|
|
const int ScanHorizon = 32768; // Maximum length of message to check. |
|
|
const int ScanHorizon = 32768; // Maximum length of message to check. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void LoadRuleBase(string& RuleFileName, string& SecurityKey); // Load & Validate RuleBase. |
|
|
|
|
|
|
|
|
void LoadRuleBase(std::string& RuleFileName, |
|
|
|
|
|
std::string& SecurityKey); // Load & Validate RuleBase. |
|
|
|
|
|
|
|
|
EvaluationMatrix* ScanMessage(unsigned char* MessageBuffer); // Scan with filter chain. |
|
|
EvaluationMatrix* ScanMessage(unsigned char* MessageBuffer); // Scan with filter chain. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |