GetChallenge

GameSpy SDK

GetChallenge

Get the challenge value that should be sent to clients for authentication (using GenerateAuth).

char * GetChallenge(
statsgame_t game );
RoutineRequired HeaderDistribution
GetChallenge<gstats.h>SDKZIP

Return Value

Returns a string to pass to GenerateAuth to create the authentication hash.

Parameters

game
[in] The game to return the challenge string for. If NULL, uses most recently created game.

Remarks

You do not have to free the string when done. This string will be constant for the entire length of the game and is generated during the call to NewGame.

Section Reference: Gamespy Stats and Tracking SDK