Skip to content

Commit d57762b

Browse files
committed
fix include order for unit tests
1 parent 0016643 commit d57762b

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

include/wolfboot/wolfboot.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -316,26 +316,26 @@ extern "C" {
316316
#define KEY_VERIFY_SELF_ONLY KEY_VERIFY_ONLY_ID(0)
317317
#define KEY_VERIFY_APP_ONLY KEY_VERIFY_ONLY_ID(1)
318318

319-
#if defined(__WOLFBOOT) || defined(UNIT_TEST_AUTH)
320-
321-
#include "wolfssl/wolfcrypt/settings.h"
322-
#include "wolfssl/wolfcrypt/visibility.h"
323-
#include "wolfssl/wolfcrypt/wc_port.h"
324-
#include "wolfssl/wolfcrypt/types.h"
325-
326319
/* HAL crypto device ID abstraction.
327320
* Override per-class via build system -D flags.
328321
* Defaults to INVALID_DEVID (software-only). */
329322
#ifndef WOLFBOOT_DEVID_HASH
330-
#define WOLFBOOT_DEVID_HASH INVALID_DEVID
323+
#define WOLFBOOT_DEVID_HASH (-2) /* INVALID_DEVID */
331324
#endif
332325
#ifndef WOLFBOOT_DEVID_PUBKEY
333-
#define WOLFBOOT_DEVID_PUBKEY INVALID_DEVID
326+
#define WOLFBOOT_DEVID_PUBKEY (-2) /* INVALID_DEVID */
334327
#endif
335328
#ifndef WOLFBOOT_DEVID_CRYPT
336-
#define WOLFBOOT_DEVID_CRYPT INVALID_DEVID
329+
#define WOLFBOOT_DEVID_CRYPT (-2) /* INVALID_DEVID */
337330
#endif
338331

332+
#if defined(__WOLFBOOT) || defined(UNIT_TEST_AUTH)
333+
334+
#include "wolfssl/wolfcrypt/settings.h"
335+
#include "wolfssl/wolfcrypt/visibility.h"
336+
#include "wolfssl/wolfcrypt/wc_port.h"
337+
#include "wolfssl/wolfcrypt/types.h"
338+
339339
#ifdef WOLFBOOT_RENESAS_TSIP
340340
/* Include these before any algorithm headers */
341341
#include "mcu/all/r_bsp_common.h"

0 commit comments

Comments
 (0)