Changed storage of tokens from registry to CASA wallet.
Broke out storage of Session tokens and Authentication tokens.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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");
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user