AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "WardenMac.h"
Public Member Functions | |
WardenMac () | |
~WardenMac () override | |
void | Init (WorldSession *session, SessionKey const &k) override |
ClientWardenModule * | GetModuleForClient () override |
void | InitializeModule () override |
void | RequestHash () override |
void | HandleHashResult (ByteBuffer &buff) override |
void | RequestChecks () override |
void | HandleData (ByteBuffer &buff) override |
Public Member Functions inherited from Warden | |
Warden () | |
virtual | ~Warden () |
virtual void | Init (WorldSession *session, SessionKey const &k)=0 |
virtual ClientWardenModule * | GetModuleForClient ()=0 |
virtual void | InitializeModule ()=0 |
virtual void | RequestHash ()=0 |
virtual void | HandleHashResult (ByteBuffer &buff)=0 |
virtual bool | IsCheckInProgress ()=0 |
virtual bool | IsInitialized () |
virtual void | ForceChecks ()=0 |
virtual void | RequestChecks ()=0 |
virtual void | HandleData (ByteBuffer &buff)=0 |
bool | ProcessLuaCheckResponse (std::string const &msg) |
void | SendModuleToClient () |
void | RequestModule () |
void | Update (uint32 const diff) |
void | DecryptData (uint8 *buffer, uint32 length) |
void | EncryptData (uint8 *buffer, uint32 length) |
void | ApplyPenalty (uint16 checkId, std::string const &reason) |
WardenPayloadMgr * | GetPayloadMgr () |
Additional Inherited Members | |
Static Public Member Functions inherited from Warden | |
static bool | IsValidCheckSum (uint32 checksum, uint8 const *data, const uint16 length) |
static uint32 | BuildChecksum (uint8 const *data, uint32 length) |
WardenMac::WardenMac | ( | ) |
|
overridedefault |
|
overridevirtual |
Implements Warden.
References ClientWardenModule::CompressedSize, Acore::Impl::GenericHash< HashCreator, DigestLength >::GetDigestOf(), and Module_0DBBF209A27B1E279A9FEC5C168A15F7_Data.
Referenced by Init().
|
overridevirtual |
Implements Warden.
References Warden::_clientResponseTimer, Warden::_dataSent, Warden::_session, Acore::Impl::GenericHash< HashCreator, DigestLength >::Finalize(), Acore::Impl::GenericHash< HashCreator, DigestLength >::GetDigest(), Acore::Impl::GenericHash< HashCreator, DigestLength >::GetDigestOf(), WorldSession::KickPlayer(), LOG_DEBUG, ByteBuffer::read(), and Acore::Impl::GenericHash< HashCreator, DigestLength >::UpdateData().
|
overridevirtual |
Implements Warden.
References Warden::_initialized, Warden::_inputCrypto, Warden::_inputKey, Warden::_outputCrypto, Warden::_outputKey, Warden::ApplyPenalty(), ByteBuffer::contents(), Acore::Impl::GenericHash< HashCreator, DigestLength >::Finalize(), Acore::Impl::GenericHash< HashCreator, DigestLength >::GetDigest(), Acore::Crypto::ARC4::Init(), keyData::ints, LOG_DEBUG, ByteBuffer::rpos(), Acore::Impl::GenericHash< HashCreator, DigestLength >::UpdateData(), and ByteBuffer::wpos().
|
overridevirtual |
Implements Warden.
References Warden::_inputCrypto, Warden::_inputKey, Warden::_module, Warden::_outputCrypto, Warden::_outputKey, Warden::_seed, Warden::_session, ByteArrayToHexStr(), Acore::Impl::ByteArrayToHexStr(), SessionKeyGenerator< Hash >::Generate(), WorldSession::GetAccountId(), GetModuleForClient(), ClientWardenModule::Id, Acore::Crypto::ARC4::Init(), ClientWardenModule::Key, LOG_DEBUG, and Warden::RequestModule().
|
overridevirtual |
|
overridevirtual |
Implements Warden.
References Warden::_dataSent, Warden::_session, ByteBuffer::append(), ByteBuffer::contents(), Warden::EncryptData(), ByteBuffer::hexlike(), LOG_DEBUG, WorldSession::SendPacket(), ByteBuffer::size(), SMSG_WARDEN_DATA, and WARDEN_SMSG_CHEAT_CHECKS_REQUEST.
|
overridevirtual |
Implements Warden.
References Warden::_seed, Warden::_session, ByteBuffer::append(), WardenHashRequest::Command, Warden::EncryptData(), LOG_DEBUG, WorldSession::SendPacket(), SMSG_WARDEN_DATA, and WARDEN_SMSG_HASH_REQUEST.