Contents - Index


4.2.3.40 Verify Challenge

HRESULT SLS_VerifyChallenge(
                                                   SLS_SECRET *pSecretArray,
                                                   int nSecrectSize,
                                                   const BYTE *pbStream,
                                                   int nStreamSize,
                                                   SLS_CHALLENGE pChallenge)

The SLS_QueryUserInfo function verifies the specified challenge.

Parameters

pSecretArray

Points to an array of product secrets.

nSecretSize

Size of the secret array.

pbStream

Points to the buffer of input data stream.

nStreamSize

Size in byte of the input data stream buffer.

pChallenge

Points to a challenge structure from which the challenge will be verified.

Return Values

SLS_SUCCESS if the function is successful. Otherwise an error status code is returned to indicate the cause of the error. Two possible errors are SLS_E_CHALLENGE_UNSUPPORTED and SLS_E_CHALLENGE_ILLEGAL.