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
2ec6c1bf
Commit
2ec6c1bf
authored
Dec 14, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 15, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32/tests: Cast-qual warnings fix.
parent
17eabc42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
ntlm.c
dlls/secur32/tests/ntlm.c
+21
-10
No files found.
dlls/secur32/tests/ntlm.c
View file @
2ec6c1bf
...
...
@@ -558,7 +558,10 @@ static void testInitializeSecurityContextFlags()
PSecPkgInfo
pkg_info
=
NULL
;
SspiData
client
;
SEC_WINNT_AUTH_IDENTITY
id
;
static
char
sec_pkg_name
[]
=
"NTLM"
;
static
char
sec_pkg_name
[]
=
"NTLM"
,
test_user
[]
=
"testuser"
,
workgroup
[]
=
"WORKGROUP"
,
test_pass
[]
=
"testpass"
;
ULONG
req_attr
,
ctxt_attr
;
TimeStamp
ttl
;
PBYTE
packet
;
...
...
@@ -570,11 +573,11 @@ static void testInitializeSecurityContextFlags()
}
pFreeContextBuffer
(
pkg_info
);
id
.
User
=
(
unsigned
char
*
)
"testuser"
;
id
.
User
=
(
unsigned
char
*
)
test_user
;
id
.
UserLength
=
strlen
((
char
*
)
id
.
User
);
id
.
Domain
=
(
unsigned
char
*
)
"WORKGROUP"
;
id
.
Domain
=
(
unsigned
char
*
)
workgroup
;
id
.
DomainLength
=
strlen
((
char
*
)
id
.
Domain
);
id
.
Password
=
(
unsigned
char
*
)
"testpass"
;
id
.
Password
=
(
unsigned
char
*
)
test_pass
;
id
.
PasswordLength
=
strlen
((
char
*
)
id
.
Password
);
id
.
Flags
=
SEC_WINNT_AUTH_IDENTITY_ANSI
;
...
...
@@ -775,12 +778,16 @@ static void testAuth(ULONG data_rep, BOOL fake)
if
(
pQuerySecurityPackageInfoA
(
sec_pkg_name
,
&
pkg_info
)
==
SEC_E_OK
)
{
static
char
test_user
[]
=
"testuser"
,
workgroup
[]
=
"WORKGROUP"
,
test_pass
[]
=
"testpass"
;
pFreeContextBuffer
(
pkg_info
);
id
.
User
=
(
unsigned
char
*
)
"testuser"
;
id
.
User
=
(
unsigned
char
*
)
test_user
;
id
.
UserLength
=
strlen
((
char
*
)
id
.
User
);
id
.
Domain
=
(
unsigned
char
*
)
"WORKGROUP"
;
id
.
Domain
=
(
unsigned
char
*
)
workgroup
;
id
.
DomainLength
=
strlen
((
char
*
)
id
.
Domain
);
id
.
Password
=
(
unsigned
char
*
)
"testpass"
;
id
.
Password
=
(
unsigned
char
*
)
test_pass
;
id
.
PasswordLength
=
strlen
((
char
*
)
id
.
Password
);
id
.
Flags
=
SEC_WINNT_AUTH_IDENTITY_ANSI
;
...
...
@@ -912,12 +919,16 @@ static void testSignSeal()
*/
if
(
pQuerySecurityPackageInfoA
(
sec_pkg_name
,
&
pkg_info
)
==
SEC_E_OK
)
{
static
char
test_user
[]
=
"testuser"
,
workgroup
[]
=
"WORKGROUP"
,
test_pass
[]
=
"testpass"
;
pFreeContextBuffer
(
pkg_info
);
id
.
User
=
(
unsigned
char
*
)
"testuser"
;
id
.
User
=
(
unsigned
char
*
)
test_user
;
id
.
UserLength
=
strlen
((
char
*
)
id
.
User
);
id
.
Domain
=
(
unsigned
char
*
)
"WORKGROUP"
;
id
.
Domain
=
(
unsigned
char
*
)
workgroup
;
id
.
DomainLength
=
strlen
((
char
*
)
id
.
Domain
);
id
.
Password
=
(
unsigned
char
*
)
"testpass"
;
id
.
Password
=
(
unsigned
char
*
)
test_pass
;
id
.
PasswordLength
=
strlen
((
char
*
)
id
.
Password
);
id
.
Flags
=
SEC_WINNT_AUTH_IDENTITY_ANSI
;
...
...
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