///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
| 23 | |
| 24 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 25 | FSecure::C3::Core::GateRelay::GateRelay(LoggerCallback callbackOnLog, InterfaceFactory& interfaceFactory, std::string_view selfIp, std::uint16_t apiBrigdePort, |
| 26 | FSecure::Crypto::SignatureKeys const& signatures, FSecure::Crypto::SymmetricKey const& broadcastKey, FSecure::C3::BuildId buildId, std::filesystem::path snapshotPath, FSecure::C3::AgentId agentId) |
| 27 | : Relay(callbackOnLog, interfaceFactory, Crypto::ConvertToKey(signatures.first), broadcastKey, buildId, agentId) |
| 28 | , m_AuthenticationKey{ Crypto::ConvertToKey(signatures.second) } |
| 29 | , m_Signature{ signatures.first } |
| 30 | , m_Profiler(std::make_shared<Profiler>(std::move(snapshotPath))) |
| 31 | { |
| 32 | Log({ "Gateway launched.", FSecure::C3::LogMessage::Severity::Information }); |
| 33 | } |
| 34 | |
| 35 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 36 | bool FSecure::C3::Core::GateRelay::IsAgentBanned(AgentId agentId) |