Actually reset the context on save as advertised
Also fix some wording in the documentation while at it.
diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c
index b93d645..bcccd1d 100644
--- a/programs/ssl/ssl_client2.c
+++ b/programs/ssl/ssl_client2.c
@@ -2960,16 +2960,8 @@
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 )