Integrating gsasl on client side. Untested.

This commit is contained in:
lotodore
2009-10-22 22:55:19 +00:00
parent 7ae35122b8
commit 629cd71735
4 changed files with 156 additions and 6 deletions
+36
View File
@@ -266,6 +266,42 @@ protected:
virtual void InternalHandlePacket(boost::shared_ptr<ClientThread> client, boost::shared_ptr<NetPacket> tmpPacket) = 0;
};
// State: Wait for Authentication Challenge.
class ClientStateWaitAuthChallenge : public AbstractClientStateReceiving
{
public:
// Access the state singleton.
static ClientStateWaitAuthChallenge &Instance();
virtual ~ClientStateWaitAuthChallenge();
virtual void Enter(boost::shared_ptr<ClientThread> client);
virtual void Exit(boost::shared_ptr<ClientThread> client);
protected:
// Protected constructor - this is a singleton.
ClientStateWaitAuthChallenge();
virtual void InternalHandlePacket(boost::shared_ptr<ClientThread> client, boost::shared_ptr<NetPacket> tmpPacket);
};
// State: Wait for Authentication Verification.
class ClientStateWaitAuthVerify : public AbstractClientStateReceiving
{
public:
// Access the state singleton.
static ClientStateWaitAuthVerify &Instance();
virtual ~ClientStateWaitAuthVerify();
virtual void Enter(boost::shared_ptr<ClientThread> client);
virtual void Exit(boost::shared_ptr<ClientThread> client);
protected:
// Protected constructor - this is a singleton.
ClientStateWaitAuthVerify();
virtual void InternalHandlePacket(boost::shared_ptr<ClientThread> client, boost::shared_ptr<NetPacket> tmpPacket);
};
// State: Wait for Session ACK.
class ClientStateWaitSession : public AbstractClientStateReceiving
{