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
cdf8d455
Commit
cdf8d455
authored
Sep 17, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Handle extra data in schan_InitializeSecurityContextW.
parent
98ed9bcd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
schannel.c
dlls/secur32/schannel.c
+8
-0
schannel.c
dlls/secur32/tests/schannel.c
+18
-1
No files found.
dlls/secur32/schannel.c
View file @
cdf8d455
...
...
@@ -775,6 +775,14 @@ static SECURITY_STATUS SEC_ENTRY schan_InitializeSecurityContextW(
/* Perform the TLS handshake */
err
=
pgnutls_handshake
(
ctx
->
session
);
if
(
transport
.
in
.
offset
&&
transport
.
in
.
offset
!=
pInput
->
pBuffers
[
0
].
cbBuffer
)
{
if
(
pInput
->
cBuffers
<
2
||
pInput
->
pBuffers
[
1
].
BufferType
!=
SECBUFFER_EMPTY
)
return
SEC_E_INVALID_TOKEN
;
pInput
->
pBuffers
[
1
].
BufferType
=
SECBUFFER_EXTRA
;
pInput
->
pBuffers
[
1
].
cbBuffer
=
pInput
->
pBuffers
[
0
].
cbBuffer
-
transport
.
in
.
offset
;
}
out_buffers
=
&
transport
.
out
;
if
(
out_buffers
->
current_buffer_idx
!=
-
1
)
{
...
...
dlls/secur32/tests/schannel.c
View file @
cdf8d455
...
...
@@ -586,7 +586,7 @@ static void test_communication(void)
return
;
}
/* Create a socket and connect to
mail.google
.com */
/* Create a socket and connect to
www.codeweavers
.com */
ret
=
WSAStartup
(
0x0202
,
&
wsa_data
);
if
(
ret
)
{
...
...
@@ -636,6 +636,23 @@ static void test_communication(void)
0
,
0
,
NULL
,
0
,
&
context
,
&
buffers
[
0
],
&
attrs
,
NULL
);
ok
(
status
==
SEC_I_CONTINUE_NEEDED
,
"Expected SEC_I_CONTINUE_NEEDED, got %08x
\n
"
,
status
);
buffers
[
1
].
cBuffers
=
1
;
buffers
[
1
].
pBuffers
[
0
].
BufferType
=
SECBUFFER_TOKEN
;
data_size
=
buffers
[
0
].
pBuffers
[
0
].
cbBuffer
;
status
=
pInitializeSecurityContextA
(
&
cred_handle
,
&
context
,
(
SEC_CHAR
*
)
"localhost"
,
ISC_REQ_CONFIDENTIALITY
|
ISC_REQ_STREAM
,
0
,
0
,
&
buffers
[
1
],
0
,
NULL
,
&
buffers
[
0
],
&
attrs
,
NULL
);
ok
(
status
==
SEC_E_INVALID_TOKEN
,
"Expected SEC_E_INVALID_TOKEN, got %08x
\n
"
,
status
);
buffers
[
0
].
pBuffers
[
0
].
cbBuffer
=
buf_size
;
buffers
[
1
].
cBuffers
=
4
;
buffers
[
1
].
pBuffers
[
0
].
cbBuffer
=
buf_size
;
status
=
pInitializeSecurityContextA
(
&
cred_handle
,
NULL
,
(
SEC_CHAR
*
)
"localhost"
,
ISC_REQ_CONFIDENTIALITY
|
ISC_REQ_STREAM
,
0
,
0
,
NULL
,
0
,
&
context
,
&
buffers
[
0
],
&
attrs
,
NULL
);
ok
(
status
==
SEC_I_CONTINUE_NEEDED
,
"Expected SEC_I_CONTINUE_NEEDED, got %08x
\n
"
,
status
);
while
(
status
==
SEC_I_CONTINUE_NEEDED
)
{
buf
=
&
buffers
[
0
].
pBuffers
[
0
];
...
...
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