AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
AuthSession.cpp File Reference
#include "AuthSession.h"
#include "AES.h"
#include "AuthCodes.h"
#include "Config.h"
#include "CryptoGenerics.h"
#include "CryptoHash.h"
#include "CryptoRandom.h"
#include "DatabaseEnv.h"
#include "IPLocation.h"
#include "Log.h"
#include "RealmList.h"
#include "SecretMgr.h"
#include "StringConvert.h"
#include "TOTP.h"
#include "Util.h"
#include <boost/lexical_cast.hpp>

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
 

Macros

#define MAX_ACCEPTED_CHALLENGE_SIZE   (sizeof(AUTH_LOGON_CHALLENGE_C) + 16)
 
#define AUTH_LOGON_CHALLENGE_INITIAL_SIZE   4
 
#define REALM_LIST_PACKET_SIZE   5
 

Typedefs

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_INITIATE = 0x30 ,
  XFER_DATA = 0x31 ,
  XFER_ACCEPT = 0x32 ,
  XFER_RESUME = 0x33 ,
  XFER_CANCEL = 0x34
}
 

Variables

std::array< uint8, 16 > VersionChallenge = { { 0xBA, 0xA3, 0x1E, 0x99, 0xA0, 0x0B, 0x21, 0x57, 0xFC, 0x37, 0x3F, 0xB3, 0x69, 0xCD, 0xD2, 0xF1 } }
 
std::unordered_map< uint8, AuthHandler > const Handlers = AuthSession::InitHandlers()
 

Macro Definition Documentation

◆ AUTH_LOGON_CHALLENGE_INITIAL_SIZE

#define AUTH_LOGON_CHALLENGE_INITIAL_SIZE   4

◆ MAX_ACCEPTED_CHALLENGE_SIZE

#define MAX_ACCEPTED_CHALLENGE_SIZE   (sizeof(AUTH_LOGON_CHALLENGE_C) + 16)

◆ REALM_LIST_PACKET_SIZE

#define REALM_LIST_PACKET_SIZE   5

Typedef Documentation

◆ 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_INITIATE 
XFER_DATA 
XFER_ACCEPT 
XFER_RESUME 
XFER_CANCEL 
38{
40 AUTH_LOGON_PROOF = 0x01,
43 REALM_LIST = 0x10,
44 XFER_INITIATE = 0x30,
45 XFER_DATA = 0x31,
46 XFER_ACCEPT = 0x32,
47 XFER_RESUME = 0x33,
48 XFER_CANCEL = 0x34
49};
@ XFER_INITIATE
Definition: AuthSession.cpp:44
@ XFER_ACCEPT
Definition: AuthSession.cpp:46
@ XFER_CANCEL
Definition: AuthSession.cpp:48
@ AUTH_LOGON_CHALLENGE
Definition: AuthSession.cpp:39
@ REALM_LIST
Definition: AuthSession.cpp:43
@ AUTH_RECONNECT_PROOF
Definition: AuthSession.cpp:42
@ AUTH_RECONNECT_CHALLENGE
Definition: AuthSession.cpp:41
@ XFER_DATA
Definition: AuthSession.cpp:45
@ XFER_RESUME
Definition: AuthSession.cpp:47
@ AUTH_LOGON_PROOF
Definition: AuthSession.cpp:40

Variable Documentation

◆ Handlers

std::unordered_map<uint8, AuthHandler> const Handlers = AuthSession::InitHandlers()

◆ VersionChallenge

std::array<uint8, 16> VersionChallenge = { { 0xBA, 0xA3, 0x1E, 0x99, 0xA0, 0x0B, 0x21, 0x57, 0xFC, 0x37, 0x3F, 0xB3, 0x69, 0xCD, 0xD2, 0xF1 } }