Move the definition of data_t to a header file
This way it can be used in helper functions. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
bdc7b8bb6a
commit
571576fc5c
2 changed files with 7 additions and 7 deletions
|
@ -59,6 +59,13 @@
|
||||||
#include "mbedtls/bignum.h"
|
#include "mbedtls/bignum.h"
|
||||||
#endif
|
#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
|
typedef enum
|
||||||
{
|
{
|
||||||
MBEDTLS_TEST_RESULT_SUCCESS = 0,
|
MBEDTLS_TEST_RESULT_SUCCESS = 0,
|
||||||
|
|
|
@ -52,13 +52,6 @@ typedef UINT32 uint32_t;
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Type for Hex parameters */
|
|
||||||
typedef struct data_tag
|
|
||||||
{
|
|
||||||
uint8_t * x;
|
|
||||||
uint32_t len;
|
|
||||||
} data_t;
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
/* Status and error constants */
|
/* Status and error constants */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue