mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 19:24:26 +03:00
Nov_12_2023-Dev
This commit is contained in:
@@ -31,7 +31,7 @@ bool Match::operator==(const Match &other) const
|
||||
}
|
||||
|
||||
Behavior::Behavior()
|
||||
: m_action(""), m_log(""), m_sourceIdentifier("")
|
||||
: m_id(""), m_action(""), m_log(""), m_sourceIdentifier("")
|
||||
{
|
||||
}
|
||||
|
||||
@@ -40,6 +40,11 @@ bool Behavior::operator==(const Behavior &other) const
|
||||
return (m_action == other.m_action) && (m_log == other.m_log) && (m_sourceIdentifier == other.m_sourceIdentifier);
|
||||
}
|
||||
|
||||
const std::string & Behavior::getParentId() const
|
||||
{
|
||||
return m_id;
|
||||
}
|
||||
|
||||
const std::string & Behavior::getAction() const
|
||||
{
|
||||
return m_action;
|
||||
@@ -55,6 +60,11 @@ const std::string& Behavior::getSourceIdentifier() const
|
||||
return m_sourceIdentifier;
|
||||
}
|
||||
|
||||
void Behavior::setParentId(const std::string& id)
|
||||
{
|
||||
m_id = id;
|
||||
}
|
||||
|
||||
bool Rule::operator==(const Rule &other) const
|
||||
{
|
||||
return (m_match == other.m_match) &&
|
||||
@@ -70,7 +80,9 @@ bool Policy::operator==(const Policy &other) const
|
||||
|
||||
State::State() :
|
||||
bForceBlock(false),
|
||||
forceBlockIds(),
|
||||
bForceException(false),
|
||||
forceExceptionIds(),
|
||||
bIgnoreLog(false),
|
||||
bSourceIdentifierOverride(false),
|
||||
sSourceIdentifierMatch("")
|
||||
|
Reference in New Issue
Block a user