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
0a62c7bd
Commit
0a62c7bd
authored
May 31, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Update output buffer offset on return from schan_send() call.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
1c894ec9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
schannel.c
dlls/secur32/schannel.c
+7
-1
schannel_gnutls.c
dlls/secur32/schannel_gnutls.c
+2
-1
secur32_priv.h
dlls/secur32/secur32_priv.h
+2
-0
No files found.
dlls/secur32/schannel.c
View file @
0a62c7bd
...
@@ -1299,7 +1299,8 @@ static SECURITY_STATUS SEC_ENTRY schan_EncryptMessage(PCtxtHandle context_handle
...
@@ -1299,7 +1299,8 @@ static SECURITY_STATUS SEC_ENTRY schan_EncryptMessage(PCtxtHandle context_handle
SIZE_T
data_size
;
SIZE_T
data_size
;
SIZE_T
length
;
SIZE_T
length
;
char
*
data
;
char
*
data
;
int
idx
;
int
idx
,
output_buffer_idx
=
-
1
;
ULONG
output_offset
=
0
;
TRACE
(
"context_handle %p, quality %ld, message %p, message_seq_no %ld
\n
"
,
TRACE
(
"context_handle %p, quality %ld, message %p, message_seq_no %ld
\n
"
,
context_handle
,
quality
,
message
,
message_seq_no
);
context_handle
,
quality
,
message
,
message_seq_no
);
...
@@ -1326,8 +1327,13 @@ static SECURITY_STATUS SEC_ENTRY schan_EncryptMessage(PCtxtHandle context_handle
...
@@ -1326,8 +1327,13 @@ static SECURITY_STATUS SEC_ENTRY schan_EncryptMessage(PCtxtHandle context_handle
params
.
output
=
message
;
params
.
output
=
message
;
params
.
buffer
=
data
;
params
.
buffer
=
data
;
params
.
length
=
&
length
;
params
.
length
=
&
length
;
params
.
output_buffer_idx
=
&
output_buffer_idx
;
params
.
output_offset
=
&
output_offset
;
status
=
GNUTLS_CALL
(
send
,
&
params
);
status
=
GNUTLS_CALL
(
send
,
&
params
);
if
(
!
status
&&
output_buffer_idx
!=
-
1
)
message
->
pBuffers
[
output_buffer_idx
].
cbBuffer
=
output_offset
;
TRACE
(
"Sent %Id bytes.
\n
"
,
length
);
TRACE
(
"Sent %Id bytes.
\n
"
,
length
);
if
(
length
!=
data_size
)
if
(
length
!=
data_size
)
...
...
dlls/secur32/schannel_gnutls.c
View file @
0a62c7bd
...
@@ -878,7 +878,8 @@ static NTSTATUS schan_send( void *args )
...
@@ -878,7 +878,8 @@ static NTSTATUS schan_send( void *args )
}
}
}
}
t
->
out
.
desc
->
pBuffers
[
t
->
out
.
current_buffer_idx
].
cbBuffer
=
t
->
out
.
offset
;
*
params
->
output_buffer_idx
=
t
->
out
.
current_buffer_idx
;
*
params
->
output_offset
=
t
->
out
.
offset
;
return
SEC_E_OK
;
return
SEC_E_OK
;
}
}
...
...
dlls/secur32/secur32_priv.h
View file @
0a62c7bd
...
@@ -167,6 +167,8 @@ struct send_params
...
@@ -167,6 +167,8 @@ struct send_params
SecBufferDesc
*
output
;
SecBufferDesc
*
output
;
const
void
*
buffer
;
const
void
*
buffer
;
SIZE_T
*
length
;
SIZE_T
*
length
;
int
*
output_buffer_idx
;
ULONG
*
output_offset
;
};
};
struct
set_application_protocols_params
struct
set_application_protocols_params
...
...
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