Changed storage of tokens from registry to CASA wallet.

Broke out storage of Session tokens and Authentication tokens.
This commit is contained in:
Todd Throne
2006-06-20 20:33:11 +00:00
parent a9e70687e1
commit fc7f88c01d
8 changed files with 840 additions and 1261 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -58,7 +58,7 @@ BOOL APIENTRY DllMain(
g_hModule = hModule;
// Initialize the library
if (InitializeLibrary() != 0)
if (Initialize() != 0)
{
// Failed to initialize the library
OutputDebugString("CASAAUTH -DllMain- Library initialization failed\n");

View File

@@ -146,7 +146,7 @@ CreateUserMutex(void)
}
else
{
DbgTrace(0, "-CreateUserMutex- Un-expected GetUserName error, error = %d\n", GetLastError());
DbgTrace(0, "-CreateUserMutex- Unexpected GetUserName error, error = %d\n", GetLastError());
retStatus = CasaStatusBuild(CASA_SEVERITY_ERROR,
CASA_FACILITY_AUTHTOKEN,
CASA_STATUS_UNSUCCESSFUL);

View File

@@ -74,15 +74,15 @@ char printBuff[256]; \
//
typedef struct _AuthCacheEntry
{
LIST_ENTRY listEntry;
int refCount;
// LIST_ENTRY listEntry;
// int refCount;
int status;
DWORD creationTime;
DWORD expirationTime;
BOOL doesNotExpire;
char *pHostName;
char *pCacheKeyName;
char *pToken;
int status;
// char *pHostName;
// char *pCacheKeyName;
char token[1];
} AuthCacheEntry, *PAuthCacheEntry;