ssl_ticket.c: Base ticket age check on the ticket creation time
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
c57f86e132
commit
3c0072b58e
4 changed files with 62 additions and 28 deletions
|
@ -4282,6 +4282,9 @@ static int ssl_write_new_session_ticket(mbedtls_ssl_context *ssl)
|
|||
* 10 . 9+n ticket content
|
||||
*/
|
||||
|
||||
#if defined(MBEDTLS_HAVE_TIME)
|
||||
ssl->session_negotiate->ticket_creation_time = mbedtls_ms_time();
|
||||
#endif
|
||||
if ((ret = ssl->conf->f_ticket_write(ssl->conf->p_ticket,
|
||||
ssl->session_negotiate,
|
||||
ssl->out_msg + 10,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue