mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-04-29 20:53:22 +02:00
Add wolfcrypt/src/wolfssl_sources.h and wolfcrypt/src/wolfssl_sources_asm.h,
which force on BUILDING_WOLFSSL and do boilerplate includes, and update library sources to include them at the top. wolfssl_sources.h includes types.h, error-crypt.h, and logging.h, and conditionally, config.h. settings.h and wc_port.h are unconditionally included at the top of types.h. wolfssl_sources_asm.h includes settings.h, and conditionally, config.h. Add wolfssl_sources*.h to wolfcrypt/src/include.am, and to several IDE/ project files. Also added a TEST_WOLFSSL_SOURCES_INCLUSION_SEQUENCE clause in wolfssl/wolfcrypt/settings.h to allow coverage testing. In wolfcrypt/src/misc.c, retain existing ad hoc boilerplate includes, and use them if WOLFSSL_VIS_FOR_TESTS, otherwise include the new wolfssl_sources.h. Define WOLFSSL_VIS_FOR_TESTS at top of wolfcrypt/test/test.c. Also renamed WOLFSSL_NEED_LINUX_CURRENT to WOLFSSL_LINUXKM_NEED_LINUX_CURRENT, for clarity.
This commit is contained in:
@@ -19,14 +19,7 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#if !defined(WOLFSSL_USER_SETTINGS) && !defined(WOLFSSL_NO_OPTIONS_H)
|
||||
#include <wolfssl/options.h>
|
||||
#endif
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
#include <tests/unit.h>
|
||||
|
||||
#ifdef NO_INLINE
|
||||
#include <wolfssl/wolfcrypt/misc.h>
|
||||
@@ -37,7 +30,6 @@
|
||||
|
||||
#include <wolfssl/wolfcrypt/wc_encrypt.h>
|
||||
#include <wolfssl/wolfcrypt/types.h>
|
||||
#include <tests/unit.h>
|
||||
#include <tests/api/api.h>
|
||||
#include <tests/api/test_wc_encrypt.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user