File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed
src/server/authserver/Server Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change 31
31
#include " SecretMgr.h"
32
32
#include " TOTP.h"
33
33
#include " Util.h"
34
+ #include < boost/endian/arithmetic.hpp>
34
35
#include < boost/lexical_cast.hpp>
35
36
36
37
using boost::asio::ip::tcp;
38
+ using boost::endian::little_uint16_t ;
39
+ using boost::endian::little_uint32_t ;
37
40
38
41
enum eAuthCmd : uint8
39
42
{
@@ -55,17 +58,17 @@ typedef struct AUTH_LOGON_CHALLENGE_C
55
58
{
56
59
uint8 cmd;
57
60
uint8 error;
58
- uint16 size;
59
- uint32 gamename;
61
+ little_uint16_t size;
62
+ little_uint32_t gamename;
60
63
uint8 version1;
61
64
uint8 version2;
62
65
uint8 version3;
63
- uint16 build;
64
- uint32 platform;
65
- uint32 os;
66
- uint32 country;
67
- uint32 timezone_bias;
68
- uint32 ip;
66
+ little_uint16_t build;
67
+ little_uint32_t platform;
68
+ little_uint32_t os;
69
+ little_uint32_t country;
70
+ little_uint32_t timezone_bias;
71
+ little_uint32_t ip;
69
72
uint8 I_len;
70
73
char I[1 ];
71
74
} sAuthLogonChallenge_C ;
@@ -87,9 +90,9 @@ typedef struct AUTH_LOGON_PROOF_S
87
90
uint8 cmd;
88
91
uint8 error;
89
92
Trinity::Crypto::SHA1::Digest M2;
90
- uint32 AccountFlags;
91
- uint32 SurveyId;
92
- uint16 LoginFlags;
93
+ little_uint32_t AccountFlags;
94
+ little_uint32_t SurveyId;
95
+ little_uint16_t LoginFlags;
93
96
} sAuthLogonProof_S ;
94
97
static_assert (sizeof (sAuthLogonProof_S ) == (1 + 1 + 20 + 4 + 4 + 2 ));
95
98
@@ -98,7 +101,7 @@ typedef struct AUTH_LOGON_PROOF_S_OLD
98
101
uint8 cmd;
99
102
uint8 error;
100
103
Trinity::Crypto::SHA1::Digest M2;
101
- uint32 unk2;
104
+ little_uint32_t unk2;
102
105
} sAuthLogonProof_S_Old ;
103
106
static_assert (sizeof (sAuthLogonProof_S_Old ) == (1 + 1 + 20 + 4 ));
104
107
You can’t perform that action at this time.
0 commit comments