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
abf8ba51
Commit
abf8ba51
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: Get rid of buffer iteration callback in unixlib.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
088c2882
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
schannel_gnutls.c
dlls/secur32/schannel_gnutls.c
+8
-11
No files found.
dlls/secur32/schannel_gnutls.c
View file @
abf8ba51
...
...
@@ -147,7 +147,6 @@ struct schan_buffers
SIZE_T
limit
;
const
SecBufferDesc
*
desc
;
int
current_buffer_idx
;
int
(
*
get_next_buffer
)(
struct
schan_buffers
*
);
};
struct
schan_transport
...
...
@@ -226,17 +225,15 @@ static void compat_gnutls_dtls_set_timeouts(gnutls_session_t session, unsigned i
FIXME
(
"
\n
"
);
}
static
void
init_schan_buffers
(
struct
schan_buffers
*
s
,
const
PSecBufferDesc
desc
,
int
(
*
get_next_buffer
)(
struct
schan_buffers
*
))
static
void
init_schan_buffers
(
struct
schan_buffers
*
s
,
const
PSecBufferDesc
desc
)
{
s
->
offset
=
0
;
s
->
limit
=
~
0UL
;
s
->
desc
=
desc
;
s
->
current_buffer_idx
=
-
1
;
s
->
get_next_buffer
=
get_next_buffer
;
}
static
int
common_
get_next_buffer
(
struct
schan_buffers
*
s
)
static
int
get_next_buffer
(
struct
schan_buffers
*
s
)
{
if
(
s
->
current_buffer_idx
==
-
1
)
return
s
->
desc
->
cBuffers
?
0
:
-
1
;
...
...
@@ -259,7 +256,7 @@ static char *get_buffer(struct schan_buffers *s, SIZE_T *count)
if
(
s
->
current_buffer_idx
==
-
1
)
{
/* Initial buffer */
int
buffer_idx
=
s
->
get_next_buffer
(
s
);
int
buffer_idx
=
get_next_buffer
(
s
);
if
(
buffer_idx
==
-
1
)
{
TRACE
(
"No next buffer
\n
"
);
...
...
@@ -280,7 +277,7 @@ static char *get_buffer(struct schan_buffers *s, SIZE_T *count)
{
int
buffer_idx
;
buffer_idx
=
s
->
get_next_buffer
(
s
);
buffer_idx
=
get_next_buffer
(
s
);
if
(
buffer_idx
==
-
1
)
{
TRACE
(
"No next buffer
\n
"
);
...
...
@@ -518,9 +515,9 @@ static NTSTATUS schan_handshake( void *args )
NTSTATUS
status
;
int
err
;
init_schan_buffers
(
&
t
->
in
,
params
->
input
,
common_get_next_buffer
);
init_schan_buffers
(
&
t
->
in
,
params
->
input
);
t
->
in
.
limit
=
params
->
input_size
;
init_schan_buffers
(
&
t
->
out
,
params
->
output
,
common_get_next_buffer
);
init_schan_buffers
(
&
t
->
out
,
params
->
output
);
while
(
1
)
{
...
...
@@ -785,7 +782,7 @@ static NTSTATUS schan_send( void *args )
struct
schan_transport
*
t
=
(
struct
schan_transport
*
)
pgnutls_transport_get_ptr
(
s
);
SSIZE_T
ret
,
total
=
0
;
init_schan_buffers
(
&
t
->
out
,
params
->
output
,
common_get_next_buffer
);
init_schan_buffers
(
&
t
->
out
,
params
->
output
);
for
(;;)
{
...
...
@@ -825,7 +822,7 @@ static NTSTATUS schan_recv( void *args )
ssize_t
ret
;
SECURITY_STATUS
status
=
SEC_E_OK
;
init_schan_buffers
(
&
t
->
in
,
params
->
input
,
common_get_next_buffer
);
init_schan_buffers
(
&
t
->
in
,
params
->
input
);
t
->
in
.
limit
=
params
->
input_size
;
while
(
received
<
data_size
)
...
...
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