From 571576fc5cb8de0fc1eb3ea9de3edca641585bc2 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 20 Sep 2022 21:37:56 +0200 Subject: [PATCH] Move the definition of data_t to a header file This way it can be used in helper functions. Signed-off-by: Gilles Peskine --- tests/include/test/helpers.h | 7 +++++++ tests/suites/helpers.function | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/include/test/helpers.h b/tests/include/test/helpers.h index c0677a99d..823635c00 100644 --- a/tests/include/test/helpers.h +++ b/tests/include/test/helpers.h @@ -59,6 +59,13 @@ #include "mbedtls/bignum.h" #endif +/** The type of test case arguments that contain binary data. */ +typedef struct data_tag +{ + uint8_t * x; + uint32_t len; +} data_t; + typedef enum { MBEDTLS_TEST_RESULT_SUCCESS = 0, diff --git a/tests/suites/helpers.function b/tests/suites/helpers.function index a620178f6..33cfc1062 100644 --- a/tests/suites/helpers.function +++ b/tests/suites/helpers.function @@ -52,13 +52,6 @@ typedef UINT32 uint32_t; #include #endif -/* Type for Hex parameters */ -typedef struct data_tag -{ - uint8_t * x; - uint32_t len; -} data_t; - /*----------------------------------------------------------------------------*/ /* Status and error constants */