diff options
author | Treeston <treeston.mmoc@gmail.com> | 2020-07-22 14:54:17 +0200 |
---|---|---|
committer | Treeston <treeston.mmoc@gmail.com> | 2020-07-22 14:54:17 +0200 |
commit | 6bdba191b52a584f4345a3c0985ad6e62853b5a3 (patch) | |
tree | 693db882458e408f7ada80d0a27788a440617e1e | |
parent | f1f251eb381bccc9164e29a81da9e013090543a4 (diff) |
Core/Authserver: Some safeguards in case anyone (read: me) tweaks these files in the future.
-rw-r--r-- | src/server/authserver/Server/AuthSession.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/authserver/Server/AuthSession.cpp b/src/server/authserver/Server/AuthSession.cpp index 02a77871b75..748d2145a23 100644 --- a/src/server/authserver/Server/AuthSession.cpp +++ b/src/server/authserver/Server/AuthSession.cpp @@ -68,6 +68,7 @@ typedef struct AUTH_LOGON_CHALLENGE_C uint8 I_len; uint8 I[1]; } sAuthLogonChallenge_C; +static_assert(sizeof(sAuthLogonChallenge_C) == (1 + 1 + 2 + 4 + 1 + 1 + 1 + 2 + 4 + 4 + 4 + 4 + 4 + 1 + 1)); typedef struct AUTH_LOGON_PROOF_C { @@ -78,6 +79,7 @@ typedef struct AUTH_LOGON_PROOF_C uint8 number_of_keys; uint8 securityFlags; } sAuthLogonProof_C; +static_assert(sizeof(sAuthLogonProof_C) == (1 + 32 + 20 + 20 + 1 + 1)); typedef struct AUTH_LOGON_PROOF_S { @@ -88,6 +90,7 @@ typedef struct AUTH_LOGON_PROOF_S uint32 SurveyId; uint16 LoginFlags; } sAuthLogonProof_S; +static_assert(sizeof(sAuthLogonProof_S) == (1 + 1 + 20 + 4 + 4 + 2)); typedef struct AUTH_LOGON_PROOF_S_OLD { @@ -96,6 +99,7 @@ typedef struct AUTH_LOGON_PROOF_S_OLD uint8 M2[20]; uint32 unk2; } sAuthLogonProof_S_Old; +static_assert(sizeof(sAuthLogonProof_S_Old) == (1 + 1 + 20 + 4)); typedef struct AUTH_RECONNECT_PROOF_C { @@ -105,6 +109,7 @@ typedef struct AUTH_RECONNECT_PROOF_C uint8 R3[20]; uint8 number_of_keys; } sAuthReconnectProof_C; +static_assert(sizeof(sAuthReconnectProof_C) == (1 + 16 + 20 + 20 + 1)); #pragma pack(pop) |