Set timer callbacks with serialization
This commit is contained in:
parent
1a7f7936f3
commit
8e2532196d
@ -2975,6 +2975,11 @@ send_request:
|
|||||||
mbedtls_net_send, mbedtls_net_recv,
|
mbedtls_net_send, mbedtls_net_recv,
|
||||||
opt.nbio == 0 ? mbedtls_net_recv_timeout : NULL );
|
opt.nbio == 0 ? mbedtls_net_recv_timeout : NULL );
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_TIMING_C)
|
||||||
|
if( opt.nbio != 0 && opt.read_timeout != 0 )
|
||||||
|
mbedtls_ssl_set_timer_cb( &ssl, &timer, mbedtls_timing_set_delay,
|
||||||
|
mbedtls_timing_get_delay );
|
||||||
|
#endif /* MBEDTLS_TIMING_C */
|
||||||
}
|
}
|
||||||
|
|
||||||
mbedtls_printf( " Deserializing connection..." );
|
mbedtls_printf( " Deserializing connection..." );
|
||||||
|
@ -3985,6 +3985,11 @@ data_exchange:
|
|||||||
mbedtls_ssl_set_bio( &ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv,
|
mbedtls_ssl_set_bio( &ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv,
|
||||||
opt.nbio == 0 ? mbedtls_net_recv_timeout : NULL );
|
opt.nbio == 0 ? mbedtls_net_recv_timeout : NULL );
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_TIMING_C)
|
||||||
|
if( opt.nbio != 0 && opt.read_timeout != 0 )
|
||||||
|
mbedtls_ssl_set_timer_cb( &ssl, &timer, mbedtls_timing_set_delay,
|
||||||
|
mbedtls_timing_get_delay );
|
||||||
|
#endif /* MBEDTLS_TIMING_C */
|
||||||
}
|
}
|
||||||
|
|
||||||
mbedtls_printf( " Deserializing connection..." );
|
mbedtls_printf( " Deserializing connection..." );
|
||||||
|
Loading…
Reference in New Issue
Block a user