Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f74e1192
Commit
f74e1192
authored
Jul 12, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32/tests: Fix a test failure and extend tests.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55114
parent
ed4104d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
schannel.c
dlls/secur32/tests/schannel.c
+10
-6
No files found.
dlls/secur32/tests/schannel.c
View file @
f74e1192
...
...
@@ -1900,6 +1900,7 @@ static void test_dtls(void)
static
void
test_connection_shutdown
(
void
)
{
static
const
BYTE
message
[]
=
{
0x15
,
0x03
,
0x01
,
0x00
,
0x02
,
0x01
,
0x00
};
static
const
BYTE
message2
[]
=
{
0x15
,
0x03
,
0x01
,
0x00
,
0x02
,
0x02
,
0x2a
};
CtxtHandle
context
,
context2
;
SecBufferDesc
buffers
[
2
];
SECURITY_STATUS
status
;
...
...
@@ -1918,7 +1919,7 @@ static void test_connection_shutdown(void)
&
cred
,
NULL
,
NULL
,
&
cred_handle
,
NULL
);
ok
(
status
==
SEC_E_OK
,
"got %08lx
\n
"
,
status
);
init_buffers
(
&
buffers
[
0
],
2
,
0
);
init_buffers
(
&
buffers
[
0
],
2
,
24
);
init_buffers
(
&
buffers
[
1
],
1
,
1000
);
buffers
[
0
].
cBuffers
=
1
;
buffers
[
0
].
pBuffers
[
0
].
BufferType
=
SECBUFFER_EMPTY
;
...
...
@@ -2012,13 +2013,12 @@ static void test_connection_shutdown(void)
status
=
ApplyControlToken
(
&
context
,
buffers
);
ok
(
status
==
SEC_E_OK
,
"got %08lx.
\n
"
,
status
);
buf
->
cbBuffer
=
1000
;
buf
fers
[
1
].
pBuffers
[
0
].
cbBuffer
=
1000
;
status
=
InitializeSecurityContextA
(
&
cred_handle
,
&
context
,
NULL
,
0
,
0
,
0
,
NULL
,
0
,
NULL
,
&
buffers
[
0
],
&
attrs
,
NULL
);
NULL
,
0
,
NULL
,
&
buffers
[
1
],
&
attrs
,
NULL
);
ok
(
status
==
SEC_E_OK
,
"got %08lx.
\n
"
,
status
);
ok
(
buf
->
cbBuffer
==
sizeof
(
message
),
"got cbBuffer %#lx.
\n
"
,
buf
->
cbBuffer
);
ok
(
!
memcmp
(
buf
->
pvBuffer
,
message
,
sizeof
(
message
)
),
"message data mismatch.
\n
"
);
free_buffers
(
&
buffers
[
0
]
);
ok
(
buffers
[
1
].
pBuffers
[
0
].
cbBuffer
==
sizeof
(
message
),
"got cbBuffer %#lx.
\n
"
,
buffers
[
1
].
pBuffers
[
0
].
cbBuffer
);
ok
(
!
memcmp
(
buffers
[
1
].
pBuffers
[
0
].
pvBuffer
,
message
,
sizeof
(
message
)
),
"message data mismatch.
\n
"
);
alert
.
dwTokenType
=
SCHANNEL_ALERT
;
alert
.
dwAlertType
=
TLS1_ALERT_FATAL
;
...
...
@@ -2028,10 +2028,14 @@ static void test_connection_shutdown(void)
status
=
ApplyControlToken
(
&
context
,
buffers
);
ok
(
status
==
SEC_E_OK
,
"got %08lx.
\n
"
,
status
);
buffers
[
1
].
pBuffers
[
0
].
cbBuffer
=
1000
;
status
=
InitializeSecurityContextA
(
&
cred_handle
,
&
context
,
NULL
,
0
,
0
,
0
,
NULL
,
0
,
NULL
,
&
buffers
[
1
],
&
attrs
,
NULL
);
ok
(
status
==
SEC_E_OK
,
"got %08lx.
\n
"
,
status
);
ok
(
buffers
[
1
].
pBuffers
[
0
].
cbBuffer
==
sizeof
(
message2
),
"got cbBuffer %#lx.
\n
"
,
buffers
[
1
].
pBuffers
[
0
].
cbBuffer
);
ok
(
!
memcmp
(
buffers
[
1
].
pBuffers
[
0
].
pvBuffer
,
message2
,
sizeof
(
message2
)
),
"message data mismatch.
\n
"
);
free_buffers
(
&
buffers
[
0
]
);
free_buffers
(
&
buffers
[
1
]
);
DeleteSecurityContext
(
&
context
);
FreeCredentialsHandle
(
&
cred_handle
);
...
...
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