wininet: De-Hungarian auth cache member names.
This commit is contained in:
parent
b49b2430ee
commit
2c6ad546cd
|
@ -183,10 +183,10 @@ typedef struct _basicAuthorizationData
|
||||||
{
|
{
|
||||||
struct list entry;
|
struct list entry;
|
||||||
|
|
||||||
LPWSTR lpszwHost;
|
LPWSTR host;
|
||||||
LPWSTR lpszwRealm;
|
LPWSTR realm;
|
||||||
LPSTR lpszAuthorization;
|
LPSTR authorization;
|
||||||
UINT AuthorizationLen;
|
UINT authorizationLen;
|
||||||
} basicAuthorizationData;
|
} basicAuthorizationData;
|
||||||
|
|
||||||
typedef struct _authorizationData
|
typedef struct _authorizationData
|
||||||
|
@ -585,12 +585,12 @@ static UINT retrieve_cached_basic_authorization(LPWSTR host, LPWSTR realm, LPSTR
|
||||||
EnterCriticalSection(&authcache_cs);
|
EnterCriticalSection(&authcache_cs);
|
||||||
LIST_FOR_EACH_ENTRY(ad, &basicAuthorizationCache, basicAuthorizationData, entry)
|
LIST_FOR_EACH_ENTRY(ad, &basicAuthorizationCache, basicAuthorizationData, entry)
|
||||||
{
|
{
|
||||||
if (!strcmpiW(host,ad->lpszwHost) && !strcmpW(realm,ad->lpszwRealm))
|
if (!strcmpiW(host,ad->host) && !strcmpW(realm,ad->realm))
|
||||||
{
|
{
|
||||||
TRACE("Authorization found in cache\n");
|
TRACE("Authorization found in cache\n");
|
||||||
*auth_data = HeapAlloc(GetProcessHeap(),0,ad->AuthorizationLen);
|
*auth_data = HeapAlloc(GetProcessHeap(),0,ad->authorizationLen);
|
||||||
memcpy(*auth_data,ad->lpszAuthorization,ad->AuthorizationLen);
|
memcpy(*auth_data,ad->authorization,ad->authorizationLen);
|
||||||
rc = ad->AuthorizationLen;
|
rc = ad->authorizationLen;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -609,7 +609,7 @@ static void cache_basic_authorization(LPWSTR host, LPWSTR realm, LPSTR auth_data
|
||||||
LIST_FOR_EACH(cursor, &basicAuthorizationCache)
|
LIST_FOR_EACH(cursor, &basicAuthorizationCache)
|
||||||
{
|
{
|
||||||
basicAuthorizationData *check = LIST_ENTRY(cursor,basicAuthorizationData,entry);
|
basicAuthorizationData *check = LIST_ENTRY(cursor,basicAuthorizationData,entry);
|
||||||
if (!strcmpiW(host,check->lpszwHost) && !strcmpW(realm,check->lpszwRealm))
|
if (!strcmpiW(host,check->host) && !strcmpW(realm,check->realm))
|
||||||
{
|
{
|
||||||
ad = check;
|
ad = check;
|
||||||
break;
|
break;
|
||||||
|
@ -619,19 +619,19 @@ static void cache_basic_authorization(LPWSTR host, LPWSTR realm, LPSTR auth_data
|
||||||
if (ad)
|
if (ad)
|
||||||
{
|
{
|
||||||
TRACE("Found match in cache, replacing\n");
|
TRACE("Found match in cache, replacing\n");
|
||||||
HeapFree(GetProcessHeap(),0,ad->lpszAuthorization);
|
HeapFree(GetProcessHeap(),0,ad->authorization);
|
||||||
ad->lpszAuthorization = HeapAlloc(GetProcessHeap(),0,auth_data_len);
|
ad->authorization = HeapAlloc(GetProcessHeap(),0,auth_data_len);
|
||||||
memcpy(ad->lpszAuthorization, auth_data, auth_data_len);
|
memcpy(ad->authorization, auth_data, auth_data_len);
|
||||||
ad->AuthorizationLen = auth_data_len;
|
ad->authorizationLen = auth_data_len;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ad = HeapAlloc(GetProcessHeap(),0,sizeof(basicAuthorizationData));
|
ad = HeapAlloc(GetProcessHeap(),0,sizeof(basicAuthorizationData));
|
||||||
ad->lpszwHost = heap_strdupW(host);
|
ad->host = heap_strdupW(host);
|
||||||
ad->lpszwRealm = heap_strdupW(realm);
|
ad->host = heap_strdupW(realm);
|
||||||
ad->lpszAuthorization = HeapAlloc(GetProcessHeap(),0,auth_data_len);
|
ad->authorization = HeapAlloc(GetProcessHeap(),0,auth_data_len);
|
||||||
memcpy(ad->lpszAuthorization, auth_data, auth_data_len);
|
memcpy(ad->authorization, auth_data, auth_data_len);
|
||||||
ad->AuthorizationLen = auth_data_len;
|
ad->authorizationLen = auth_data_len;
|
||||||
list_add_head(&basicAuthorizationCache,&ad->entry);
|
list_add_head(&basicAuthorizationCache,&ad->entry);
|
||||||
TRACE("authorization cached\n");
|
TRACE("authorization cached\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue