Implement key rotation

This commit is contained in:
Manuel Pégourié-Gonnard 2015-05-25 14:07:08 +02:00
parent 887674a33b
commit 1e9c4db524
2 changed files with 68 additions and 10 deletions

View file

@ -52,6 +52,7 @@ mbedtls_ssl_ticket_key;
typedef struct
{
mbedtls_ssl_ticket_key keys[2]; /*!< ticket protection keys */
unsigned char active; /*!< index of the currently active key */
uint32_t ticket_lifetime; /*!< lifetime of tickets in seconds */