Skip to content

fix: add missing error-crypt.h include in pico.c for BAD_FUNC_ARG#10774

Open
srpatcha wants to merge 1 commit into
wolfSSL:masterfrom
srpatcha:fix/pico-missing-include
Open

fix: add missing error-crypt.h include in pico.c for BAD_FUNC_ARG#10774
srpatcha wants to merge 1 commit into
wolfSSL:masterfrom
srpatcha:fix/pico-missing-include

Conversation

@srpatcha

Copy link
Copy Markdown

Summary

Commit 30cb25e added a \BAD_FUNC_ARG\ return to \wc_pico_rng_gen_block()\ but did not add the required #include <wolfssl/wolfcrypt/error-crypt.h>, causing a compile error when \WOLFSSL_RPIPICO\ is defined:

\
wolfssl/wolfcrypt/src/port/rpi_pico/pico.c:45:16: error: 'BAD_FUNC_ARG' undeclared (first use in this function)
\\

Fix

Add #include <wolfssl/wolfcrypt/error-crypt.h>\ alongside the existing \ ypes.h\ include.

Testing

  • Single-line include addition; no behavioral change to existing callers
  • Restores successful compilation on Raspberry Pi Pico targets

Fixes #10741

Commit 30cb25e added a BAD_FUNC_ARG return to wc_pico_rng_gen_block()
but did not add the required #include for wolfssl/wolfcrypt/error-crypt.h,
causing a compile error when WOLFSSL_RPIPICO is defined.

Fixes wolfSSL#10741
@wolfSSL-Bot

Copy link
Copy Markdown

Can one of the admins verify this patch?

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.

[Bug]: Compiler error when WOLFSSL_RPIPICO is used.

2 participants