From 4400ecc9fb47f1ccf11b8c42614886d3ab79d4ff Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Tue, 19 Jul 2016 14:41:43 +0100 Subject: [PATCH] Fix output of PKCS#5 and RIPEMD-160 self tests --- library/pkcs5.c | 3 ++- library/ripemd160.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/library/pkcs5.c b/library/pkcs5.c index 44af9869b..e28d5a847 100644 --- a/library/pkcs5.c +++ b/library/pkcs5.c @@ -391,7 +391,8 @@ int mbedtls_pkcs5_self_test( int verbose ) mbedtls_printf( "passed\n" ); } - mbedtls_printf( "\n" ); + if( verbose != 0 ) + mbedtls_printf( "\n" ); exit: mbedtls_md_free( &sha1_ctx ); diff --git a/library/ripemd160.c b/library/ripemd160.c index a55cc3eb4..cdb0a63c0 100644 --- a/library/ripemd160.c +++ b/library/ripemd160.c @@ -456,6 +456,9 @@ int mbedtls_ripemd160_self_test( int verbose ) mbedtls_printf( "passed\n" ); } + if( verbose != 0 ) + mbedtls_printf( "\n" ); + return( 0 ); }