Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
1c894ec9
Commit
1c894ec9
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: Simplify input buffer handling for schan_recv() call.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
fee52bd4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
schannel.c
dlls/secur32/schannel.c
+5
-1
schannel_gnutls.c
dlls/secur32/schannel_gnutls.c
+1
-1
No files found.
dlls/secur32/schannel.c
View file @
1c894ec9
...
...
@@ -1409,6 +1409,7 @@ static SECURITY_STATUS SEC_ENTRY schan_DecryptMessage(PCtxtHandle context_handle
SIZE_T
received
=
0
;
int
idx
;
unsigned
char
*
buf_ptr
;
SecBufferDesc
input_desc
=
{
0
};
TRACE
(
"context_handle %p, message %p, message_seq_no %ld, quality %p
\n
"
,
context_handle
,
message
,
message_seq_no
,
quality
);
...
...
@@ -1446,8 +1447,11 @@ static SECURITY_STATUS SEC_ENTRY schan_DecryptMessage(PCtxtHandle context_handle
received
=
data_size
;
input_desc
.
cBuffers
=
1
;
input_desc
.
pBuffers
=
&
message
->
pBuffers
[
idx
];
params
.
session
=
ctx
->
session
;
params
.
input
=
message
;
params
.
input
=
&
input_desc
;
params
.
input_size
=
expected_size
;
params
.
buffer
=
data
;
params
.
length
=
&
received
;
...
...
dlls/secur32/schannel_gnutls.c
View file @
1c894ec9
...
...
@@ -307,7 +307,7 @@ static int recv_message_get_next_buffer(struct schan_buffers *s)
{
if
(
s
->
current_buffer_idx
!=
-
1
)
return
-
1
;
return
s
chan_find_sec_buffer_idx
(
s
->
desc
,
0
,
SECBUFFER_DATA
)
;
return
s
->
desc
->
cBuffers
?
0
:
-
1
;
}
static
char
*
get_buffer
(
struct
schan_buffers
*
s
,
SIZE_T
*
count
)
...
...
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