Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ext: fiat: Use user-defined assert macro #1881

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

taltenbach
Copy link
Contributor

By defining MCUBOOT_HAVE_ASSERT_H, a user can configure MCUboot to use a custom definition of the assert macro, defined in mcuboot_config/mcuboot_assert.h instead of the one coming from the C standard library.

However, the libc's assert macro was used in curve25519.c even if MCUBOOT_HAVE_ASSERT_H is defined. This PR fixes this issue by removing #include <assert.h> from curve25519.c to rely instead of the assert definition from bootutil/bootutil_public.h.

The libc assert macro was used in curve25519.c even if the user provided
its own definition of the assert macro for MCUboot through
mcuboot_assert.h. This commit fixes this issue.

Signed-off-by: Thomas Altenbach <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants