Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2c6ad546
Commit
2c6ad546
authored
Mar 01, 2011
by
Juan Lang
Committed by
Alexandre Julliard
Mar 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: De-Hungarian auth cache member names.
parent
b49b2430
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
http.c
dlls/wininet/http.c
+18
-18
No files found.
dlls/wininet/http.c
View file @
2c6ad546
...
...
@@ -183,10 +183,10 @@ typedef struct _basicAuthorizationData
{
struct
list
entry
;
LPWSTR
lpszwH
ost
;
LPWSTR
lpszwR
ealm
;
LPSTR
lpszA
uthorization
;
UINT
A
uthorizationLen
;
LPWSTR
h
ost
;
LPWSTR
r
ealm
;
LPSTR
a
uthorization
;
UINT
a
uthorizationLen
;
}
basicAuthorizationData
;
typedef
struct
_authorizationData
...
...
@@ -585,12 +585,12 @@ static UINT retrieve_cached_basic_authorization(LPWSTR host, LPWSTR realm, LPSTR
EnterCriticalSection
(
&
authcache_cs
);
LIST_FOR_EACH_ENTRY
(
ad
,
&
basicAuthorizationCache
,
basicAuthorizationData
,
entry
)
{
if
(
!
strcmpiW
(
host
,
ad
->
lpszwHost
)
&&
!
strcmpW
(
realm
,
ad
->
lpszwR
ealm
))
if
(
!
strcmpiW
(
host
,
ad
->
host
)
&&
!
strcmpW
(
realm
,
ad
->
r
ealm
))
{
TRACE
(
"Authorization found in cache
\n
"
);
*
auth_data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
ad
->
A
uthorizationLen
);
memcpy
(
*
auth_data
,
ad
->
lpszAuthorization
,
ad
->
A
uthorizationLen
);
rc
=
ad
->
A
uthorizationLen
;
*
auth_data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
ad
->
a
uthorizationLen
);
memcpy
(
*
auth_data
,
ad
->
authorization
,
ad
->
a
uthorizationLen
);
rc
=
ad
->
a
uthorizationLen
;
break
;
}
}
...
...
@@ -609,7 +609,7 @@ static void cache_basic_authorization(LPWSTR host, LPWSTR realm, LPSTR auth_data
LIST_FOR_EACH
(
cursor
,
&
basicAuthorizationCache
)
{
basicAuthorizationData
*
check
=
LIST_ENTRY
(
cursor
,
basicAuthorizationData
,
entry
);
if
(
!
strcmpiW
(
host
,
check
->
lpszwHost
)
&&
!
strcmpW
(
realm
,
check
->
lpszwR
ealm
))
if
(
!
strcmpiW
(
host
,
check
->
host
)
&&
!
strcmpW
(
realm
,
check
->
r
ealm
))
{
ad
=
check
;
break
;
...
...
@@ -619,19 +619,19 @@ static void cache_basic_authorization(LPWSTR host, LPWSTR realm, LPSTR auth_data
if
(
ad
)
{
TRACE
(
"Found match in cache, replacing
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
ad
->
lpszA
uthorization
);
ad
->
lpszA
uthorization
=
HeapAlloc
(
GetProcessHeap
(),
0
,
auth_data_len
);
memcpy
(
ad
->
lpszA
uthorization
,
auth_data
,
auth_data_len
);
ad
->
A
uthorizationLen
=
auth_data_len
;
HeapFree
(
GetProcessHeap
(),
0
,
ad
->
a
uthorization
);
ad
->
a
uthorization
=
HeapAlloc
(
GetProcessHeap
(),
0
,
auth_data_len
);
memcpy
(
ad
->
a
uthorization
,
auth_data
,
auth_data_len
);
ad
->
a
uthorizationLen
=
auth_data_len
;
}
else
{
ad
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
basicAuthorizationData
));
ad
->
lpszwH
ost
=
heap_strdupW
(
host
);
ad
->
lpszwRealm
=
heap_strdupW
(
realm
);
ad
->
lpszA
uthorization
=
HeapAlloc
(
GetProcessHeap
(),
0
,
auth_data_len
);
memcpy
(
ad
->
lpszA
uthorization
,
auth_data
,
auth_data_len
);
ad
->
A
uthorizationLen
=
auth_data_len
;
ad
->
h
ost
=
heap_strdupW
(
host
);
ad
->
host
=
heap_strdupW
(
realm
);
ad
->
a
uthorization
=
HeapAlloc
(
GetProcessHeap
(),
0
,
auth_data_len
);
memcpy
(
ad
->
a
uthorization
,
auth_data
,
auth_data_len
);
ad
->
a
uthorizationLen
=
auth_data_len
;
list_add_head
(
&
basicAuthorizationCache
,
&
ad
->
entry
);
TRACE
(
"authorization cached
\n
"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment