Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mbedtls
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
external
mbedtls
Commits
545102ef
Commit
545102ef
authored
May 13, 2015
by
Manuel Pégourié-Gonnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No timer -> to timeout (optional for TLS)
parent
286a136e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ssl_tls.c
library/ssl_tls.c
+5
-2
No files found.
library/ssl_tls.c
View file @
545102ef
...
...
@@ -95,7 +95,7 @@ static void ssl_set_timer( mbedtls_ssl_context *ssl, uint32_t millisecs )
static
int
ssl_check_timer
(
mbedtls_ssl_context
*
ssl
)
{
if
(
ssl
->
f_get_timer
==
NULL
)
return
(
-
2
);
return
(
0
);
if
(
ssl
->
f_get_timer
(
ssl
->
p_timer
)
==
2
)
{
...
...
@@ -6071,8 +6071,11 @@ int mbedtls_ssl_read( mbedtls_ssl_context *ssl, unsigned char *buf, size_t len )
if
(
ssl
->
in_offt
==
NULL
)
{
/* Start timer if not already running */
if
(
ssl
->
f_get_timer
(
ssl
->
p_timer
)
==
-
1
)
if
(
ssl
->
f_get_timer
!=
NULL
&&
ssl
->
f_get_timer
(
ssl
->
p_timer
)
==
-
1
)
{
ssl_set_timer
(
ssl
,
ssl
->
conf
->
read_timeout
);
}
if
(
!
record_read
)
{
...
...
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