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:
committed by
Paul Bakker
parent
990c51a557
commit
56dc9e8bba
@ -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 );
|
||||
|
Reference in New Issue
Block a user