mirror of
https://github.com/openappsec/openappsec.git
synced 2025-12-31 21:59:08 +03:00
sync code
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "config.h"
|
||||
#include "i_instance_awareness.h"
|
||||
#include "i_signal_handler.h"
|
||||
#include "hash_combine.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -283,6 +284,16 @@ private:
|
||||
S2C_PARAM(string, output);
|
||||
};
|
||||
|
||||
void
|
||||
AlertInfo::evalParams()
|
||||
{
|
||||
id = 0;
|
||||
hashCombine(id, family_id);
|
||||
hashCombine(id, functionality);
|
||||
hashCombine(id, description);
|
||||
hashCombine(id, static_cast<size_t>(team));
|
||||
}
|
||||
|
||||
// LCOV_EXCL_START - function is covered in unit-test, but not detected bt gcov
|
||||
Debug::Debug(
|
||||
const string &file_name,
|
||||
@@ -830,6 +841,14 @@ Debug::isCommunicationFlag(const DebugFlags &flag)
|
||||
);
|
||||
}
|
||||
|
||||
void
|
||||
Debug::sendAlert(const AlertInfo &alert)
|
||||
{
|
||||
for (auto &added_stream : current_active_streams) {
|
||||
added_stream->sendAlert(alert);
|
||||
}
|
||||
}
|
||||
|
||||
Debug::DebugLevel Debug::lowest_global_level = default_level;
|
||||
I_TimeGet *Debug::time = nullptr;
|
||||
I_MainLoop *Debug::mainloop = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user