gcd_compute_response
Calculates a response to a challenge string.
- void gcd_compute_response(
- char * cdkey,
- char * challenge,
- char response[73],
- CDResponseMethod method );
Routine | Required Header | Distribution |
---|---|---|
gcd_compute_response | <gcdkeys.h> | SDKZIP |
Parameters
- cdkey
- [in] The client's CD key.
- challenge
- [in] The challenge string. Should be no more than 32 characters.
- response
- [out] Receives the computed response string.
- method
- [in] Enum listing the response method - set to either CDResponseMethod_NEWAUTH or CDResponseMethod_REAUTH.
Remarks
When the client receives the challenge string it should calculate a response using the gcd_compute_response function in the Client API.
Pass the client's CD key and the challenge string into the function and it will return the response string, a 72 character ASCII string. Send this response back to the server.
Section Reference: Gamespy CDKey SDK