Formatting fixes
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
diff --git a/library/pkparse.c b/library/pkparse.c
index 11afd0b..6f40968 100644
--- a/library/pkparse.c
+++ b/library/pkparse.c
@@ -1453,7 +1453,7 @@
if( ret == 0 )
{
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 );
return( MBEDTLS_ERR_PK_UNKNOWN_PK_ALG );
diff --git a/library/ssl_cache.c b/library/ssl_cache.c
index 456f41c..d198474 100644
--- a/library/ssl_cache.c
+++ b/library/ssl_cache.c
@@ -314,7 +314,7 @@
if( session_serialized != NULL )
{
mbedtls_platform_zeroize( session_serialized, session_serialized_len );
- mbedtls_free(session_serialized);
+ mbedtls_free( session_serialized );
session_serialized = NULL;
}
diff --git a/tests/suites/test_suite_ssl.function b/tests/suites/test_suite_ssl.function
index 09b9d8e..4224c41 100644
--- a/tests/suites/test_suite_ssl.function
+++ b/tests/suites/test_suite_ssl.function
@@ -87,7 +87,7 @@
void (*cli_log_fun)(void *, int, const char *, int, const char *);
int resize_buffers;
#if defined(MBEDTLS_SSL_CACHE_C)
- mbedtls_ssl_cache_context* cache;
+ mbedtls_ssl_cache_context *cache;
#endif
} handshake_test_options;
@@ -940,7 +940,7 @@
* \retval 0 on success, otherwise error code.
*/
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_queue *input_queue,
mbedtls_test_message_queue *output_queue,
@@ -1983,7 +1983,7 @@
#if defined(MBEDTLS_X509_CRT_PARSE_C) && \
defined(MBEDTLS_ENTROPY_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 */
int forced_ciphersuite[2];