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
d2989cc3
Commit
d2989cc3
authored
Aug 09, 2006
by
Kai Blin
Committed by
Alexandre Julliard
Aug 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Make ntlm tests run on both WinXP and Win2k.
parent
a71cf844
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
18 deletions
+6
-18
ntlm.c
dlls/secur32/ntlm.c
+1
-1
ntlm.c
dlls/secur32/tests/ntlm.c
+5
-17
No files found.
dlls/secur32/ntlm.c
View file @
d2989cc3
...
...
@@ -963,7 +963,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_QueryContextAttributesW(PCtxtHandle phCont
PSecPkgContext_Sizes
spcs
=
(
PSecPkgContext_Sizes
)
pBuffer
;
spcs
->
cbMaxToken
=
NTLM_MAX_BUF
;
spcs
->
cbMaxSignature
=
16
;
spcs
->
cbBlockSize
=
1
;
spcs
->
cbBlockSize
=
0
;
spcs
->
cbSecurityTrailer
=
16
;
return
SEC_E_OK
;
}
...
...
dlls/secur32/tests/ntlm.c
View file @
d2989cc3
...
...
@@ -67,12 +67,6 @@ typedef struct _SspiData {
ULONG
max_token
;
}
SspiData
;
static
BYTE
client_req
[]
=
{
0x4e
,
0x54
,
0x4c
,
0x4d
,
0x53
,
0x53
,
0x50
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x07
,
0x82
,
0x00
,
0xa0
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
};
static
BYTE
network_challenge
[]
=
{
0x4e
,
0x54
,
0x4c
,
0x4d
,
0x53
,
0x53
,
0x50
,
0x00
,
0x02
,
0x00
,
0x00
,
0x00
,
0x10
,
0x00
,
0x10
,
0x00
,
0x30
,
0x00
,
0x00
,
0x00
,
...
...
@@ -596,14 +590,8 @@ static void testAuth(ULONG data_rep, BOOL fake)
"Running the client returned %s, more tests will fail.
\n
"
,
getSecError
(
client_stat
));
if
(
first
)
todo_wine
{
ok
(
!
memcmp
(
client
.
out_buf
->
pBuffers
[
0
].
pvBuffer
,
client_req
,
sizeof
(
client_req
)),
"Client gave an invalid reply!
\n
"
);
}
communicate
(
&
client
,
&
server
);
if
(
fake
)
server_stat
=
runFakeServer
(
&
server
,
first
,
data_rep
);
else
...
...
@@ -619,7 +607,7 @@ static void testAuth(ULONG data_rep, BOOL fake)
first
=
FALSE
;
}
if
(
!
strcmp
(
sec_pkg_name
,
"NTLM"
)
)
if
(
client_stat
==
SEC_E_OK
)
{
sec_status
=
pQueryContextAttributesA
(
client
.
ctxt
,
SECPKG_ATTR_SIZES
,
&
ctxt_sizes
);
...
...
@@ -636,12 +624,12 @@ static void testAuth(ULONG data_rep, BOOL fake)
ok
(
ctxt_sizes
.
cbSecurityTrailer
==
16
,
"cbSecurityTrailer should be 16 but is %lu
\n
"
,
ctxt_sizes
.
cbSecurityTrailer
);
ok
(
ctxt_sizes
.
cbBlockSize
==
1
,
"cbBlockSize should be
1 but is %lu
\n
"
,
ok
(
ctxt_sizes
.
cbBlockSize
==
0
,
"cbBlockSize should be
0 but is %lu
\n
"
,
ctxt_sizes
.
cbBlockSize
);
}
else
trace
(
"
Unknown sec package %s
\n
"
,
sec_pkg_name
);
trace
(
"
Authentication failed, skipping test.
\n
"
);
cleanupBuffers
(
&
client
);
cleanupBuffers
(
&
server
);
...
...
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