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
f6c9c72e
Commit
f6c9c72e
authored
Nov 07, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Nov 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Output extra data in NTLM sign & seal test to diagnose failures seen on…
secur32: Output extra data in NTLM sign & seal test to diagnose failures seen on some Windows machines.
parent
94efd487
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
ntlm.c
dlls/secur32/tests/ntlm.c
+48
-0
No files found.
dlls/secur32/tests/ntlm.c
View file @
f6c9c72e
...
...
@@ -1056,8 +1056,32 @@ static void testSignSeal(void)
ok
(
!
memcmp
(
crypt
.
pBuffers
[
0
].
pvBuffer
,
crypt_trailer_client
,
crypt
.
pBuffers
[
0
].
cbBuffer
),
"Crypt trailer not as expected.
\n
"
);
if
(
memcmp
(
crypt
.
pBuffers
[
0
].
pvBuffer
,
crypt_trailer_client
,
crypt
.
pBuffers
[
0
].
cbBuffer
))
{
int
i
;
for
(
i
=
0
;
i
<
crypt
.
pBuffers
[
0
].
cbBuffer
;
i
++
)
{
if
(
i
%
8
==
0
)
printf
(
" "
);
printf
(
"0x%02x,"
,
((
unsigned
char
*
)
crypt
.
pBuffers
[
0
].
pvBuffer
)[
i
]);
if
(
i
%
8
==
7
)
printf
(
"
\n
"
);
}
printf
(
"
\n
"
);
}
ok
(
!
memcmp
(
crypt
.
pBuffers
[
1
].
pvBuffer
,
crypt_message_client
,
crypt
.
pBuffers
[
1
].
cbBuffer
),
"Crypt message not as expected.
\n
"
);
if
(
memcmp
(
crypt
.
pBuffers
[
1
].
pvBuffer
,
crypt_message_client
,
crypt
.
pBuffers
[
1
].
cbBuffer
))
{
int
i
;
for
(
i
=
0
;
i
<
crypt
.
pBuffers
[
1
].
cbBuffer
;
i
++
)
{
if
(
i
%
8
==
0
)
printf
(
" "
);
printf
(
"0x%02x,"
,
((
unsigned
char
*
)
crypt
.
pBuffers
[
1
].
pvBuffer
)[
i
]);
if
(
i
%
8
==
7
)
printf
(
"
\n
"
);
}
printf
(
"
\n
"
);
}
data
[
0
].
cbBuffer
=
sizeof
(
crypt_trailer_server
);
data
[
1
].
cbBuffer
=
sizeof
(
crypt_message_server
);
...
...
@@ -1113,9 +1137,33 @@ static void testSignSeal(void)
ok
(
!
memcmp
(
crypt
.
pBuffers
[
3
].
pvBuffer
,
crypt_trailer_client2
,
crypt
.
pBuffers
[
3
].
cbBuffer
),
"Crypt trailer not as expected.
\n
"
);
if
(
memcmp
(
crypt
.
pBuffers
[
3
].
pvBuffer
,
crypt_trailer_client2
,
crypt
.
pBuffers
[
3
].
cbBuffer
))
{
int
i
;
for
(
i
=
0
;
i
<
crypt
.
pBuffers
[
3
].
cbBuffer
;
i
++
)
{
if
(
i
%
8
==
0
)
printf
(
" "
);
printf
(
"0x%02x,"
,
((
unsigned
char
*
)
crypt
.
pBuffers
[
3
].
pvBuffer
)[
i
]);
if
(
i
%
8
==
7
)
printf
(
"
\n
"
);
}
printf
(
"
\n
"
);
}
ok
(
!
memcmp
(
crypt
.
pBuffers
[
1
].
pvBuffer
,
crypt_message_client2
,
crypt
.
pBuffers
[
1
].
cbBuffer
),
"Crypt message not as expected.
\n
"
);
if
(
memcmp
(
crypt
.
pBuffers
[
1
].
pvBuffer
,
crypt_message_client2
,
crypt
.
pBuffers
[
1
].
cbBuffer
))
{
int
i
;
for
(
i
=
0
;
i
<
crypt
.
pBuffers
[
1
].
cbBuffer
;
i
++
)
{
if
(
i
%
8
==
0
)
printf
(
" "
);
printf
(
"0x%02x,"
,
((
unsigned
char
*
)
crypt
.
pBuffers
[
1
].
pvBuffer
)[
i
]);
if
(
i
%
8
==
7
)
printf
(
"
\n
"
);
}
printf
(
"
\n
"
);
}
memcpy
(
complex_data
[
1
].
pvBuffer
,
crypt_message_server2
,
complex_data
[
1
].
cbBuffer
);
memcpy
(
complex_data
[
3
].
pvBuffer
,
crypt_trailer_server2
,
complex_data
[
3
].
cbBuffer
);
...
...
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