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

Use ssl_set_bio_timeout() in test client/server

This commit is contained in:
Manuel Pégourié-Gonnard
2014-09-18 16:06:04 +02:00
committed by Paul Bakker
parent 57fa314412
commit a014829024
2 changed files with 16 additions and 4 deletions

View File

@ -1591,9 +1591,15 @@ reset:
}
if( opt.nbio == 2 )
ssl_set_bio( &ssl, my_recv, &client_fd, my_send, &client_fd );
ssl_set_bio_timeout( &ssl, &client_fd, my_send, my_recv, NULL, 0 );
else
ssl_set_bio( &ssl, net_recv, &client_fd, net_send, &client_fd );
ssl_set_bio_timeout( &ssl, &client_fd, net_send, net_recv,
#if defined(POLARSSL_HAVE_TIME)
net_recv_timeout,
#else
NULL,
#endif
0 );
#if defined(POLARSSL_SSL_DTLS_HELLO_VERIFY)
if( opt.transport == SSL_TRANSPORT_DATAGRAM )