1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Move to milliseconds in recv_timeout()

This commit is contained in:
Manuel Pégourié-Gonnard
2014-10-01 15:01:39 +02:00
committed by Paul Bakker
parent 905dd2425c
commit c8d8e97cbd
4 changed files with 21 additions and 12 deletions

View File

@ -1990,7 +1990,7 @@ int ssl_fetch_input( ssl_context *ssl, size_t nb_want )
ssl->handshake != NULL ) /* No timeout outside handshake */
{
ret = ssl->f_recv_timeout( ssl->p_bio, ssl->in_hdr, len,
ssl->handshake->retransmit_timeout / 1000 );
ssl->handshake->retransmit_timeout );
}
else
ret = ssl->f_recv( ssl->p_bio, ssl->in_hdr, len );
@ -4936,8 +4936,8 @@ void ssl_set_bio_timeout( ssl_context *ssl,
void *p_bio,
int (*f_send)(void *, const unsigned char *, size_t),
int (*f_recv)(void *, unsigned char *, size_t),
int (*f_recv_timeout)(void *, unsigned char *, size_t, unsigned char),
unsigned char timeout )
int (*f_recv_timeout)(void *, unsigned char *, size_t, uint32_t),
uint32_t timeout )
{
ssl->p_bio = p_bio;
ssl->f_send = f_send;