1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Add timestamp/serial to cookies, with timeout

This commit is contained in:
Manuel Pégourié-Gonnard
2014-07-23 21:29:11 +02:00
committed by Paul Bakker
parent 445a1ec6cd
commit e90308178f
2 changed files with 93 additions and 30 deletions

View File

@ -48,7 +48,10 @@ extern "C" {
*/
typedef struct
{
md_context_t hmac_ctx;
md_context_t hmac_ctx; /*!< context for the HMAC portion */
#if !defined(POLARSSL_HAVE_TIME)
unsigned long serial; /*!< serial number for expiration */
#endif
} ssl_cookie_ctx;
/**