mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Add MD5/SHA1/SHA256 file analysis hashing actions.
This commit is contained in:
parent
ceb471fb36
commit
85410a7657
11 changed files with 271 additions and 42 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "Manager.h"
|
||||
#include "Info.h"
|
||||
#include "Action.h"
|
||||
|
||||
using namespace file_analysis;
|
||||
|
||||
|
@ -106,7 +107,7 @@ bool Manager::AddAction(const FileID& file_id, EnumVal* act,
|
|||
|
||||
if ( ! info ) return false;
|
||||
|
||||
return info->AddAction(act, args);
|
||||
return info->AddAction(static_cast<ActionTag>(act->AsEnum()), args);
|
||||
}
|
||||
|
||||
bool Manager::RemoveAction(const FileID& file_id, EnumVal* act) const
|
||||
|
@ -115,7 +116,7 @@ bool Manager::RemoveAction(const FileID& file_id, EnumVal* act) const
|
|||
|
||||
if ( ! info ) return false;
|
||||
|
||||
return info->RemoveAction(act);
|
||||
return info->RemoveAction(static_cast<ActionTag>(act->AsEnum()));
|
||||
}
|
||||
|
||||
Info* Manager::GetInfo(const string& unique, Connection* conn,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue