1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Merge pull request #6123 from yuhaoth/pr/finialize-tls13-serialize_session_save_load

TLS 1.3:finalize tls13 serialize session save and load
This commit is contained in:
Ronald Cron
2022-08-19 08:16:05 +02:00
committed by GitHub
2 changed files with 41 additions and 18 deletions

View File

@ -4809,7 +4809,7 @@ void ssl_serialize_session_save_load( int ticket_len, char *crt_file,
original.resumption_key_len ) == 0 );
}
#if defined(MBEDTLS_HAVE_TIME) && defined(MBEDTLS_SSL_SRV_C)
if( endpoint_type == MBEDTLS_SSL_IS_CLIENT)
if( endpoint_type == MBEDTLS_SSL_IS_SERVER )
{
TEST_ASSERT( original.start == restored.start );
}