mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Actually reset the context on save as advertised
Also fix some wording in the documentation while at it.
This commit is contained in:
committed by
Jarno Lamsa
parent
142ba736d9
commit
9df5a82079
@@ -3978,16 +3978,8 @@ data_exchange:
|
||||
*/
|
||||
if( opt.serialize == 1 )
|
||||
{
|
||||
mbedtls_printf( " . Reseting context..." );
|
||||
|
||||
if( ( ret = mbedtls_ssl_session_reset( &ssl ) ) != 0 )
|
||||
{
|
||||
mbedtls_printf( " failed\n ! mbedtls_ssl_session_reset returned "
|
||||
"-0x%x\n\n", -ret );
|
||||
goto exit;
|
||||
}
|
||||
|
||||
mbedtls_printf( " ok\n" );
|
||||
/* nothing to do here, done by context_save() already */
|
||||
mbedtls_printf( " . Context has been reset... ok" );
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user