From f03651217c17d1e8309d3cf5c94a92069adfe152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 29 Sep 2014 16:11:47 +0200 Subject: [PATCH] Adapt programs to use nbio with DTLS --- programs/ssl/ssl_client2.c | 2 +- programs/ssl/ssl_server2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index ac87cc241..345274faf 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -946,7 +946,7 @@ int main( int argc, char *argv[] ) else ssl_set_bio_timeout( &ssl, &server_fd, net_send, net_recv, #if defined(POLARSSL_HAVE_TIME) - net_recv_timeout, + opt.nbio == 0 ? net_recv_timeout : NULL, #else NULL, #endif diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index d70ef4c37..7159eb31e 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -1596,7 +1596,7 @@ reset: else ssl_set_bio_timeout( &ssl, &client_fd, net_send, net_recv, #if defined(POLARSSL_HAVE_TIME) - net_recv_timeout, + opt.nbio == 0 ? net_recv_timeout : NULL, #else NULL, #endif