Skip to content

Commit

Permalink
add wh_settings.h include outside macro protection for SHE source code
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbrett committed Jul 23, 2024
1 parent 9f39d02 commit 6a86a54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wh_she_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
*/
/* System libraries */

/* Pick up compile-time configuration */
#include "wolfhsm/wh_settings.h"

#ifdef WOLFHSM_CFG_SHE_EXTENSION

#include <stdint.h>
Expand All @@ -32,7 +35,6 @@
#include "wolfhsm/wh_error.h"
#include "wolfhsm/wh_utils.h"

#include "wolfhsm/wh_she_common.h"

typedef struct {
uint32_t count;
Expand Down
2 changes: 2 additions & 0 deletions src/wh_she_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
*
*/

/* Pick up compile-time configuration */
#include "wolfhsm/wh_settings.h"

#ifdef WOLFHSM_CFG_SHE_EXTENSION
#ifndef WOLFHSM_CFG_NO_CRYPTO
Expand Down

0 comments on commit 6a86a54

Please sign in to comment.