tests: helpers: Update static qualifiers
In preparation of moving the content of helpers.function
to its own compilation unit, remove/add static qualifiers
where appropriate.
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
diff --git a/tests/suites/helpers.function b/tests/suites/helpers.function
index f38502f..5ed37da 100644
--- a/tests/suites/helpers.function
+++ b/tests/suites/helpers.function
@@ -449,7 +449,7 @@
static test_info_t test_info;
#if defined(MBEDTLS_PLATFORM_C)
-mbedtls_platform_context platform_ctx;
+static mbedtls_platform_context platform_ctx;
#endif
#if defined(MBEDTLS_CHECK_PARAMS)
@@ -504,7 +504,7 @@
test_info.filename = filename;
}
-static int platform_setup()
+int platform_setup()
{
int ret = 0;
#if defined(MBEDTLS_PLATFORM_C)
@@ -513,7 +513,7 @@
return( ret );
}
-static void platform_teardown()
+void platform_teardown()
{
#if defined(MBEDTLS_PLATFORM_C)
mbedtls_platform_teardown( &platform_ctx );
@@ -652,7 +652,7 @@
*
* For convenience, dies if allocation fails.
*/
-static unsigned char *zero_alloc( size_t len )
+unsigned char *zero_alloc( size_t len )
{
void *p;
size_t actual_len = ( len != 0 ) ? len : 1;
@@ -701,7 +701,7 @@
*
* rng_state shall be NULL.
*/
-static int rnd_std_rand( void *rng_state, unsigned char *output, size_t len )
+int rnd_std_rand( void *rng_state, unsigned char *output, size_t len )
{
#if !defined(__OpenBSD__)
size_t i;