Add analyzer_confirmation and analyzer_violation events

This commit is contained in:
Tim Wojtulewicz 2021-10-25 09:03:15 -07:00
parent 7bffd2eccd
commit 612212568a
96 changed files with 432 additions and 235 deletions

View file

@ -205,4 +205,18 @@ void Session::RemoveConnectionTimer(double t)
session_mgr->Remove(this);
}
AnalyzerConfirmationState Session::AnalyzerState(const zeek::Tag& tag) const
{
auto it = analyzer_confirmations.find(tag);
if ( it == analyzer_confirmations.end() )
return AnalyzerConfirmationState::UNKNOWN;
return it->second;
}
void Session::SetAnalyzerState(const zeek::Tag& tag, AnalyzerConfirmationState value)
{
analyzer_confirmations.insert_or_assign(tag, value);
}
} // namespace zeek::session