CardSelector changes

This commit is contained in:
Jim Norman 2008-03-12 14:13:25 +00:00
parent f25fe86e6b
commit 1c2f03e2b5

View File

@ -294,7 +294,9 @@ int launchSelector(char* pSecretID,
const char line[256]; const char line[256];
char claimURI[256] = {0}; char claimURI[256] = {0};
char passwordURI[256] = {0};
char claimvalue[256] = {0}; char claimvalue[256] = {0};
int indexToDigitalMeApp = 0; int indexToDigitalMeApp = 0;
@ -354,6 +356,12 @@ int launchSelector(char* pSecretID,
sscs_strncpy(pTempPtr, pValue, vLen); sscs_strncpy(pTempPtr, pValue, vLen);
pClaims[claimCount++] = pTempPtr; pClaims[claimCount++] = pTempPtr;
claimStrLen += sscs_strlen(pValue); claimStrLen += sscs_strlen(pValue);
if (!strcmp("Password", pKey))
{
printf("Mapped password is: %s\r\n", pValue);
sscs_strncpy(passwordURI, pValue, vLen);
}
} }
// clear the buffers // clear the buffers
@ -447,7 +455,7 @@ int launchSelector(char* pSecretID,
strcpy(basicCred->username, claimvalue); strcpy(basicCred->username, claimvalue);
basicCred->unLen = strlen(claimvalue); basicCred->unLen = strlen(claimvalue);
} }
else if (!strcmp(claimURI, "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname")) else if (!strcmp(claimURI, passwordURI))
{ {
strcpy(basicCred->password, claimvalue); strcpy(basicCred->password, claimvalue);
basicCred->pwordLen = strlen(claimvalue); basicCred->pwordLen = strlen(claimvalue);