Skip to content

Commit

Permalink
Fix from review
Browse files Browse the repository at this point in the history
  • Loading branch information
embhorn committed Dec 9, 2024
1 parent c77bea6 commit fcce09a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions mcapi/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifndef WOLFSSL_USER_SETTINGS
#include <wolfssl/options.h>
#endif
#include <wolfssl/wolfcrypt/settings.h>

#ifdef MICROCHIP_MPLAB_HARMONY
Expand Down
5 changes: 4 additions & 1 deletion mcapi/mcapi_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@
#include <config.h>
#endif

/* mc api header */
#ifndef WOLFSSL_USER_SETTINGS
#include <wolfssl/options.h>
#endif
#include <wolfssl/wolfcrypt/settings.h>

/* mc api header */
#include "crypto.h"

/* sanity test against our default implementation, wolfssl headers */
Expand Down
4 changes: 4 additions & 0 deletions wolfssl/wolfcrypt/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@
#endif
#endif

#if defined(BUILDING_WOLFSSL) && defined(WOLFSSL_OPTIONS_H)
#error wolfssl/options.h included in build of library object.
#endif

#ifdef WOLFSSL_USER_SETTINGS
#include "user_settings.h"
#elif defined(USE_HAL_DRIVER) && !defined(HAVE_CONFIG_H)
Expand Down

0 comments on commit fcce09a

Please sign in to comment.