mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Preparation for timers
Currently directly using timing.c, plan to use callbacks later to loosen coupling, but first just get things working.
This commit is contained in:
committed by
Paul Bakker
parent
bd97fdb3a4
commit
db2858ce96
@ -76,6 +76,10 @@
|
||||
#include "zlib.h"
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_TIMING_C)
|
||||
#include "timing.h"
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_HAVE_TIME)
|
||||
#include <time.h>
|
||||
#endif
|
||||
@ -814,6 +818,14 @@ struct _ssl_context
|
||||
ssl_transform *transform; /*!< negotiated transform params */
|
||||
ssl_transform *transform_negotiate; /*!< transform params in negotiation */
|
||||
|
||||
/*
|
||||
* Timers (WIP)
|
||||
*/
|
||||
#if defined(POLARSSL_TIMING_C)
|
||||
struct hr_time time_info;
|
||||
unsigned long time_limit;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Record layer (incoming data)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user