1
0
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:
Manuel Pégourié-Gonnard
2014-09-29 14:04:42 +02:00
committed by Paul Bakker
parent bd97fdb3a4
commit db2858ce96
2 changed files with 43 additions and 0 deletions

View File

@ -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)
*/