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
b8aaf86b
Commit
b8aaf86b
authored
Jun 29, 2021
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Use blocking mode for DTLS sessions.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c359b4a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
schannel.c
dlls/secur32/schannel.c
+1
-6
schannel_gnutls.c
dlls/secur32/schannel_gnutls.c
+1
-5
No files found.
dlls/secur32/schannel.c
View file @
b8aaf86b
...
...
@@ -879,11 +879,6 @@ static inline SIZE_T read_record_size(const BYTE *buf, SIZE_T header_size)
return
(
buf
[
header_size
-
2
]
<<
8
)
|
buf
[
header_size
-
1
];
}
static
inline
BOOL
is_dtls_context
(
const
struct
schan_context
*
ctx
)
{
return
(
ctx
->
header_size
==
HEADER_SIZE_DTLS
);
}
/***********************************************************************
* InitializeSecurityContextW
*/
...
...
@@ -1011,7 +1006,7 @@ static SECURITY_STATUS SEC_ENTRY schan_InitializeSecurityContextW(
return
SEC_E_INCOMPLETE_MESSAGE
;
}
}
else
if
(
!
is_dtls_context
(
ctx
))
return
SEC_E_INCOMPLETE_MESSAGE
;
else
return
SEC_E_INCOMPLETE_MESSAGE
;
TRACE
(
"Using expected_size %lu.
\n
"
,
expected_size
);
}
...
...
dlls/secur32/schannel_gnutls.c
View file @
b8aaf86b
...
...
@@ -292,10 +292,6 @@ static DWORD CDECL schan_get_enabled_protocols(void)
static
int
pull_timeout
(
gnutls_transport_ptr_t
transport
,
unsigned
int
timeout
)
{
struct
schan_transport
*
t
=
(
struct
schan_transport
*
)
transport
;
SIZE_T
count
=
0
;
if
(
callbacks
->
get_buffer
(
t
,
&
t
->
in
,
&
count
))
return
1
;
return
0
;
}
...
...
@@ -309,7 +305,7 @@ static BOOL CDECL schan_create_session(schan_session *session, schan_credentials
if
(
cred
->
enabled_protocols
&
(
SP_PROT_DTLS1_0_CLIENT
|
SP_PROT_DTLS1_2_CLIENT
))
{
flags
|=
GNUTLS_DATAGRAM
|
GNUTLS_NONBLOCK
;
flags
|=
GNUTLS_DATAGRAM
;
}
err
=
pgnutls_init
(
s
,
flags
);
...
...
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