Starting gsasl integration to perform challenge response authentication. Note that gsasl 1.3 is required (previous versions are not supported). Authentication is currently broken.
This commit is contained in:
@@ -55,7 +55,7 @@ ServerDBGeneric::AsyncPlayerLogin(unsigned requestId, const string &/*playerName
|
||||
}
|
||||
|
||||
void
|
||||
ServerDBGeneric::PlayerLogout(db_id /*playerId*/)
|
||||
ServerDBGeneric::PlayerLogout(DB_id /*playerId*/)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -66,11 +66,11 @@ ServerDBGeneric::AsyncCreateGame(unsigned requestId, const string &/*gameName*/)
|
||||
}
|
||||
|
||||
void
|
||||
ServerDBGeneric::SetGamePlayerPlace(db_id /*gameId*/, db_id /*playerId*/, unsigned /*place*/)
|
||||
ServerDBGeneric::SetGamePlayerPlace(DB_id /*gameId*/, DB_id /*playerId*/, unsigned /*place*/)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
ServerDBGeneric::EndGame(db_id /*gameId*/)
|
||||
ServerDBGeneric::EndGame(DB_id /*gameId*/)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
typedef unsigned db_id;
|
||||
typedef unsigned DB_id;
|
||||
#define DB_ID_INVALID 0
|
||||
|
||||
// Callback operations are posted using the io service,
|
||||
@@ -38,10 +38,10 @@ public:
|
||||
|
||||
virtual void QueryError(const std::string &error) = 0;
|
||||
|
||||
virtual void PlayerLoginSuccess(unsigned requestId, db_id playerId) = 0;
|
||||
virtual void PlayerLoginSuccess(unsigned requestId, DB_id playerId) = 0;
|
||||
virtual void PlayerLoginFailed(unsigned requestId) = 0;
|
||||
|
||||
virtual void CreateGameSuccess(unsigned requestId, db_id gameId) = 0;
|
||||
virtual void CreateGameSuccess(unsigned requestId, DB_id gameId) = 0;
|
||||
virtual void CreateGameFailed(unsigned requestId) = 0;
|
||||
};
|
||||
|
||||
|
||||
@@ -39,11 +39,11 @@ public:
|
||||
virtual void Stop();
|
||||
|
||||
virtual void AsyncPlayerLogin(unsigned requestId, const std::string &playerName, const std::string &secretString);
|
||||
virtual void PlayerLogout(db_id playerId);
|
||||
virtual void PlayerLogout(DB_id playerId);
|
||||
|
||||
virtual void AsyncCreateGame(unsigned requestId, const std::string &gameName);
|
||||
virtual void SetGamePlayerPlace(db_id gameId, db_id playerId, unsigned place);
|
||||
virtual void EndGame(db_id gameId);
|
||||
virtual void SetGamePlayerPlace(DB_id gameId, DB_id playerId, unsigned place);
|
||||
virtual void EndGame(DB_id gameId);
|
||||
|
||||
private:
|
||||
boost::shared_ptr<boost::asio::io_service> m_ioService;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <string>
|
||||
#include <list>
|
||||
|
||||
typedef std::list<db_id> db_list;
|
||||
typedef std::list<DB_id> db_list;
|
||||
|
||||
class ServerDBInterface
|
||||
{
|
||||
@@ -39,11 +39,11 @@ public:
|
||||
virtual void Stop() = 0;
|
||||
|
||||
virtual void AsyncPlayerLogin(unsigned requestId, const std::string &playerName, const std::string &secretString) = 0;
|
||||
virtual void PlayerLogout(db_id playerId) = 0;
|
||||
virtual void PlayerLogout(DB_id playerId) = 0;
|
||||
|
||||
virtual void AsyncCreateGame(unsigned requestId, const std::string &gameName) = 0;
|
||||
virtual void SetGamePlayerPlace(db_id gameId, db_id playerId, unsigned place) = 0;
|
||||
virtual void EndGame(db_id gameId) = 0;
|
||||
virtual void SetGamePlayerPlace(DB_id gameId, DB_id playerId, unsigned place) = 0;
|
||||
virtual void EndGame(DB_id gameId) = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user