Fixed some build problems introduced with the mechanism_info changes.

This commit is contained in:
Juan Carlos Luciani
2007-03-21 23:05:34 +00:00
parent e1001dfc6f
commit 1d1803ffb6
6 changed files with 49 additions and 14 deletions

View File

@@ -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

View File

@@ -78,6 +78,7 @@ FILE *pDebugFile; \
#define bool BOOLEAN
#define true TRUE
#define false FALSE
#define strtok_r strtok_s
//===[ Inlines functions ]===============================================