From 378d64daad6287f6b1a3f0b561ea67ec0e3fb1f8 Mon Sep 17 00:00:00 2001 From: Jarno Lamsa Date: Tue, 4 Jun 2019 15:22:55 +0300 Subject: [PATCH] Remove mbedtls_ssl_free() and mbedtls_ssl_init() from serialization flow in test --- programs/ssl/ssl_client2.c | 4 ---- programs/ssl/ssl_server2.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index 1efa83afa..495827c7c 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -2946,12 +2946,8 @@ send_request: goto exit; } - mbedtls_ssl_free( &ssl ); - mbedtls_printf( " Deserializing connection..." ); - mbedtls_ssl_init( &ssl ); - if( ( ret = mbedtls_ssl_context_load( &ssl, buf, len ) ) != 0 ) { mbedtls_printf( "failed\n ! mbedtls_ssl_context_load returned -0x%x\n\n", -ret ); diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 090340f19..88748b1d7 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -3957,12 +3957,8 @@ data_exchange: goto exit; } - mbedtls_ssl_free( &ssl ); - mbedtls_printf( " Deserializing connection..." ); - mbedtls_ssl_init( &ssl ); - if( ( ret = mbedtls_ssl_context_load( &ssl, buf, len ) ) != 0 ) { mbedtls_printf( "failed\n ! mbedtls_ssl_context_load returned -0x%x\n\n", -ret );