summaryrefslogtreecommitdiff
path: root/src/authserver/Server/AuthSocket.h
diff options
context:
space:
mode:
authorChaosvex <ch@osvex.com>2016-11-18 16:22:51 +0100
committerYehonal <yehonal.azeroth@gmail.com>2016-11-18 16:22:51 +0100
commit096a77bac2168c2e899e254c9d18900a45c2e690 (patch)
treeadde8e26d82239c7684a87d69415b425eda3712c /src/authserver/Server/AuthSocket.h
parentaeb940686059e4429f9d1f563bc1dd290833281f (diff)
Core/Auth: Resolved critical vulnerability on auth system bypass
Diffstat (limited to 'src/authserver/Server/AuthSocket.h')
-rw-r--r--src/authserver/Server/AuthSocket.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/authserver/Server/AuthSocket.h b/src/authserver/Server/AuthSocket.h
index db7f3d9a36..ac00528b4c 100644
--- a/src/authserver/Server/AuthSocket.h
+++ b/src/authserver/Server/AuthSocket.h
@@ -14,6 +14,16 @@
class ACE_INET_Addr;
struct Realm;
+enum eStatus
+{
+ STATUS_CHALLENGE,
+ STATUS_LOGON_PROOF,
+ STATUS_RECON_PROOF,
+ STATUS_PATCH, // unused in CMaNGOS
+ STATUS_AUTHED,
+ STATUS_CLOSED
+};
+
// Handle login commands
class AuthSocket: public RealmSocket::Session
{
@@ -54,7 +64,7 @@ private:
BigNumber K;
BigNumber _reconnectProof;
- bool _authed;
+ eStatus _status;
std::string _login;