mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-20 22:05:15 +00:00
Actually reset the context on save as advertised
Also fix some wording in the documentation while at it.
This commit is contained in:
parent
ff22200fab
commit
bc847caa33
4 changed files with 9 additions and 23 deletions
|
|
@ -2527,16 +2527,8 @@ send_request:
|
|||
|
||||
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" );
|
||||
}
|
||||
|
||||
if( opt.serialize == 2 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue