mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-02 14:14:20 +01:00
Adapt programs to use nbio with DTLS
This commit is contained in:
parent
7de3c9eecb
commit
f03651217c
@ -946,7 +946,7 @@ int main( int argc, char *argv[] )
|
|||||||
else
|
else
|
||||||
ssl_set_bio_timeout( &ssl, &server_fd, net_send, net_recv,
|
ssl_set_bio_timeout( &ssl, &server_fd, net_send, net_recv,
|
||||||
#if defined(POLARSSL_HAVE_TIME)
|
#if defined(POLARSSL_HAVE_TIME)
|
||||||
net_recv_timeout,
|
opt.nbio == 0 ? net_recv_timeout : NULL,
|
||||||
#else
|
#else
|
||||||
NULL,
|
NULL,
|
||||||
#endif
|
#endif
|
||||||
|
@ -1596,7 +1596,7 @@ reset:
|
|||||||
else
|
else
|
||||||
ssl_set_bio_timeout( &ssl, &client_fd, net_send, net_recv,
|
ssl_set_bio_timeout( &ssl, &client_fd, net_send, net_recv,
|
||||||
#if defined(POLARSSL_HAVE_TIME)
|
#if defined(POLARSSL_HAVE_TIME)
|
||||||
net_recv_timeout,
|
opt.nbio == 0 ? net_recv_timeout : NULL,
|
||||||
#else
|
#else
|
||||||
NULL,
|
NULL,
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user