Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
AuthSocket.cpp File Reference
#include <algorithm>
#include "AuthCodes.h"
#include "AuthPatchTransfer.h"
#include "AuthSocket.h"
#include "ByteBuffer.h"
#include "Common.h"
#include "CryptoRandom.h"
#include "CryptoHash.h"
#include "Configuration/Config.h"
#include "Database/DatabaseEnv.h"
#include "Log.h"
#include "NetworkAddress.h"
#include "openssl/crypto.h"
#include "RealmList.h"
#include "TOTP.h"
Include dependency graph for AuthSocket.cpp:

Go to the source code of this file.

Classes

struct  AUTH_LOGON_CHALLENGE_C
struct  AUTH_LOGON_PROOF_C
struct  AUTH_LOGON_PROOF_S
struct  AUTH_LOGON_PROOF_S_OLD
struct  AUTH_RECONNECT_PROOF_C
struct  AuthHandler

Macros

#define AUTH_TOTAL_COMMANDS   8
#define MAX_AUTH_LOGON_CHALLENGES_IN_A_ROW   3

Typedefs

typedef struct AuthHandler AuthHandler
typedef struct AUTH_LOGON_CHALLENGE_C sAuthLogonChallenge_C
typedef struct AUTH_LOGON_PROOF_C sAuthLogonProof_C
typedef struct AUTH_LOGON_PROOF_S sAuthLogonProof_S
typedef struct AUTH_LOGON_PROOF_S_OLD sAuthLogonProof_S_Old
typedef struct AUTH_RECONNECT_PROOF_C sAuthReconnectProof_C

Enumerations

enum  eAuthCmd {
  AUTH_LOGON_CHALLENGE = 0x00 , AUTH_LOGON_PROOF = 0x01 , AUTH_RECONNECT_CHALLENGE = 0x02 , AUTH_RECONNECT_PROOF = 0x03 ,
  REALM_LIST = 0x10 , XFER_ACCEPT = 0x32 , XFER_RESUME = 0x33 , XFER_CANCEL = 0x34
}
enum  eStatus { STATUS_CONNECTED = 0 , STATUS_AUTHED }

Variables

const AuthHandler table []

Macro Definition Documentation

◆ AUTH_TOTAL_COMMANDS

#define AUTH_TOTAL_COMMANDS   8

Definition at line 131 of file AuthSocket.cpp.

Referenced by AuthSocket::OnRead().

◆ MAX_AUTH_LOGON_CHALLENGES_IN_A_ROW

#define MAX_AUTH_LOGON_CHALLENGES_IN_A_ROW   3

Referenced by AuthSocket::OnRead().

Typedef Documentation

◆ AuthHandler

typedef struct AuthHandler AuthHandler

◆ sAuthLogonChallenge_C

◆ sAuthLogonProof_C

◆ sAuthLogonProof_S

◆ sAuthLogonProof_S_Old

◆ sAuthReconnectProof_C

Enumeration Type Documentation

◆ eAuthCmd

enum eAuthCmd
Enumerator
AUTH_LOGON_CHALLENGE 
AUTH_LOGON_PROOF 
AUTH_RECONNECT_CHALLENGE 
AUTH_RECONNECT_PROOF 
REALM_LIST 
XFER_ACCEPT 
XFER_RESUME 
XFER_CANCEL 

Definition at line 23 of file AuthSocket.cpp.

◆ eStatus

enum eStatus
Enumerator
STATUS_CONNECTED 
STATUS_AUTHED 

Definition at line 35 of file AuthSocket.cpp.

Variable Documentation

◆ table

const AuthHandler table[]
Initial value:
=
{
}
@ XFER_ACCEPT
@ XFER_CANCEL
@ AUTH_LOGON_CHALLENGE
@ REALM_LIST
@ AUTH_RECONNECT_PROOF
@ AUTH_RECONNECT_CHALLENGE
@ XFER_RESUME
@ AUTH_LOGON_PROOF
@ STATUS_CONNECTED
@ STATUS_AUTHED
bool _HandleRealmList()
bool _HandleXferResume()
bool _HandleLogonProof()
bool _HandleReconnectChallenge()
bool _HandleXferAccept()
bool _HandleXferCancel()
bool _HandleLogonChallenge()
bool _HandleReconnectProof()

Definition at line 119 of file AuthSocket.cpp.

Referenced by CharacterDatabaseCleaner::CheckUnique(), ChatHandler::ExecuteCommandInTable(), ScriptMgr::GetChatCommands(), GetOpcodeNameForLogging(), ObjectMgr::LoadQuestRelationsHelper(), LoadSkyFireStrings(), ObjectMgr::LoadSkyFireStrings(), boss_professor_putricide::boss_professor_putricideAI::MovementInform(), AuthSocket::OnRead(), ChatHandler::SetDataForCommandInTable(), ChatHandler::ShowHelpForCommand(), and ChatHandler::ShowHelpForSubCommands().