Fixed some build problems introduced with the mechanism_info changes.
This commit is contained in:
@@ -220,7 +220,7 @@ CasaStatus SSCS_CALL
|
||||
AuthTokenIf_GetAuthToken(
|
||||
IN const void *pIfInstance,
|
||||
IN const char *pContext,
|
||||
IN const char *pMechInfo,
|
||||
IN char *pMechInfo,
|
||||
IN const char *pHostName,
|
||||
IN void *pCredStoreScope,
|
||||
INOUT char *pTokenBuf,
|
||||
@@ -307,12 +307,12 @@ AuthTokenIf_GetAuthToken(
|
||||
// using the format settingName=settingvalue. No white space is allowed
|
||||
// as part of the mechanism information.
|
||||
char *pNextSettingToken;
|
||||
char *pSettingValueToken = strtok_s(pMechInfo, ";", &pNextSettingToken);
|
||||
char *pSettingValueToken = strtok_r(pMechInfo, ";", &pNextSettingToken);
|
||||
while (pSettingValueToken != NULL)
|
||||
{
|
||||
char *pNextToken;
|
||||
char *pSettingName = strtok_s(pSettingValueToken, "=", &pNextToken);
|
||||
char *pSettingValue = strtok_s(NULL, "=", &pNextToken);
|
||||
char *pSettingName = strtok_r(pSettingValueToken, "=", &pNextToken);
|
||||
char *pSettingValue = strtok_r(NULL, "=", &pNextToken);
|
||||
if (pSettingValue)
|
||||
{
|
||||
// Process the setting
|
||||
|
||||
@@ -78,6 +78,7 @@ FILE *pDebugFile; \
|
||||
#define bool BOOLEAN
|
||||
#define true TRUE
|
||||
#define false FALSE
|
||||
#define strtok_r strtok_s
|
||||
|
||||
//===[ Inlines functions ]===============================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user