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

Authenticate session tickets.

This commit is contained in:
Manuel Pégourié-Gonnard
2013-08-03 17:16:31 +02:00
committed by Paul Bakker
parent 990c51a557
commit 56dc9e8bba
3 changed files with 17 additions and 5 deletions

View File

@ -2979,7 +2979,7 @@ static int ssl_ticket_keys_init( ssl_context *ssl )
{
int ret;
ssl_ticket_keys *tkeys;
unsigned char buf[32];
unsigned char buf[16];
if( ssl->ticket_keys != NULL )
return( 0 );
@ -2997,6 +2997,9 @@ static int ssl_ticket_keys_init( ssl_context *ssl )
return( ret );
}
if( ( ret = ssl->f_rng( ssl->p_rng, tkeys->mac_key, 16 ) ) != 0 )
return( ret );
ssl->ticket_keys = tkeys;
return( 0 );