|
|
@@ -36,7 +36,7 @@ |
|
|
|
|
|
|
|
// Scanner::LoadRuleBase(RuleFileName, SecurityKey) |
|
|
|
|
|
|
|
void Scanner::LoadRuleBase(string& RuleFileName, string& SecurityKey) { |
|
|
|
void Scanner::LoadRuleBase(std::string& RuleFileName, std::string& SecurityKey) { |
|
|
|
|
|
|
|
RuleBase.Load(RuleFileName); // Load the rulebase file. |
|
|
|
RuleBase.Validate(SecurityKey); // Validate the rulebase file. |
|
|
@@ -79,7 +79,7 @@ EvaluationMatrix* Scanner::ScanMessage(unsigned char* MessageBuffer) { // Scan |
|
|
|
myEvaluationMatrix->EvaluateThis(IZ.GetByte()); |
|
|
|
} |
|
|
|
|
|
|
|
catch(FilterChain::Empty) { // We're expecting this so it's ok, but |
|
|
|
catch(const FilterChain::Empty&) { // We're expecting this so it's ok, but |
|
|
|
} // anything else will still be thrown! |
|
|
|
|
|
|
|
return myEvaluationMatrix; // Return our results. |