Fix output of PKCS#5 and RIPEMD-160 self tests
diff --git a/library/pkcs5.c b/library/pkcs5.c
index 44af986..e28d5a8 100644
--- a/library/pkcs5.c
+++ b/library/pkcs5.c
@@ -391,7 +391,8 @@
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 a55cc3e..cdb0a63 100644
--- a/library/ripemd160.c
+++ b/library/ripemd160.c
@@ -456,6 +456,9 @@
mbedtls_printf( "passed\n" );
}
+ if( verbose != 0 )
+ mbedtls_printf( "\n" );
+
return( 0 );
}