mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-09-24 19:07:22 +00:00
The header `test_common.h` contains two kinds of things: * Things to do at the beginning of individual C files. Specifically, defining macros that notify system headers about what we want from them. Keep those in `test_common.h`, which will subsequently be moved out of the include directory. * Things to do at the beginning of every header. In particular, read the library configuration. Move them to a new header `build_info.h`, which is the only one intended to be included from headers. Signed-off-by: Gilles Peskine <[email protected]>
25 lines
660 B
C
25 lines
660 B
C
/**
|
|
* \file test/build_info.h
|
|
*
|
|
* \brief Common things for all Mbed TLS and TF-PSA-Crypto test headers.
|
|
*
|
|
* Include this header first in all headers in `include/test/`.
|
|
*/
|
|
|
|
/*
|
|
* Copyright The Mbed TLS Contributors
|
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef TEST_BUILD_INFO_H
|
|
#define TEST_BUILD_INFO_H
|
|
|
|
#include <mbedtls/build_info.h>
|
|
|
|
/* Most fields of publicly available structs are private and are wrapped with
|
|
* MBEDTLS_PRIVATE macro. This define allows tests to access the private fields
|
|
* directly (without using the MBEDTLS_PRIVATE wrapper). */
|
|
#define MBEDTLS_ALLOW_PRIVATE_ACCESS
|
|
|
|
#endif /* TEST_BUILD_INFO_H */
|