Formatting fixes

Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
Andrzej Kurek 2022-06-28 10:29:42 -04:00
parent e11acb2c9b
commit 92d7417d89
3 changed files with 5 additions and 5 deletions

View File

@ -1453,7 +1453,7 @@ int mbedtls_pk_parse_public_key( mbedtls_pk_context *ctx,
if( ret == 0 ) if( ret == 0 )
{ {
p = pem.buf; p = pem.buf;
if( ( pk_info = mbedtls_pk_info_from_type( MBEDTLS_PK_RSA )) == NULL ) if( ( pk_info = mbedtls_pk_info_from_type( MBEDTLS_PK_RSA ) ) == NULL )
{ {
mbedtls_pem_free( &pem ); mbedtls_pem_free( &pem );
return( MBEDTLS_ERR_PK_UNKNOWN_PK_ALG ); return( MBEDTLS_ERR_PK_UNKNOWN_PK_ALG );

View File

@ -314,7 +314,7 @@ exit:
if( session_serialized != NULL ) if( session_serialized != NULL )
{ {
mbedtls_platform_zeroize( session_serialized, session_serialized_len ); mbedtls_platform_zeroize( session_serialized, session_serialized_len );
mbedtls_free(session_serialized); mbedtls_free( session_serialized );
session_serialized = NULL; session_serialized = NULL;
} }

View File

@ -87,7 +87,7 @@ typedef struct handshake_test_options
void (*cli_log_fun)(void *, int, const char *, int, const char *); void (*cli_log_fun)(void *, int, const char *, int, const char *);
int resize_buffers; int resize_buffers;
#if defined(MBEDTLS_SSL_CACHE_C) #if defined(MBEDTLS_SSL_CACHE_C)
mbedtls_ssl_cache_context* cache; mbedtls_ssl_cache_context *cache;
#endif #endif
} handshake_test_options; } handshake_test_options;
@ -940,7 +940,7 @@ exit:
* \retval 0 on success, otherwise error code. * \retval 0 on success, otherwise error code.
*/ */
int mbedtls_endpoint_init( mbedtls_endpoint *ep, int endpoint_type, int mbedtls_endpoint_init( mbedtls_endpoint *ep, int endpoint_type,
handshake_test_options* options, handshake_test_options *options,
mbedtls_test_message_socket_context *dtls_context, mbedtls_test_message_socket_context *dtls_context,
mbedtls_test_message_queue *input_queue, mbedtls_test_message_queue *input_queue,
mbedtls_test_message_queue *output_queue, mbedtls_test_message_queue *output_queue,
@ -1983,7 +1983,7 @@ exit:
#if defined(MBEDTLS_X509_CRT_PARSE_C) && \ #if defined(MBEDTLS_X509_CRT_PARSE_C) && \
defined(MBEDTLS_ENTROPY_C) && \ defined(MBEDTLS_ENTROPY_C) && \
defined(MBEDTLS_CTR_DRBG_C) defined(MBEDTLS_CTR_DRBG_C)
void perform_handshake( handshake_test_options* options ) void perform_handshake( handshake_test_options *options )
{ {
/* forced_ciphersuite needs to last until the end of the handshake */ /* forced_ciphersuite needs to last until the end of the handshake */
int forced_ciphersuite[2]; int forced_ciphersuite[2];