Skip to content

Gate out signature.h prototypes when NO_SIG_WRAPPER defined - #11488

Open
holtrop-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
holtrop-wolfssl:no-sig-wrapper-prototypes
Open

holtrop-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
holtrop-wolfssl:no-sig-wrapper-prototypes

Conversation

@holtrop-wolfssl

Copy link
Copy Markdown
Contributor

Description

Gate out signature.h prototypes when NO_SIG_WRAPPER defined

This causes a compile-time error rather than a link-time error since the function definitions were already gated out in signature.c.

This will be used by the fix to F-13036.

Testing

How did you test?

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

This causes a compile-time error rather than a link-time error since the
function definitions were already gated out in signature.c.
@holtrop-wolfssl holtrop-wolfssl self-assigned this Sep 17, 2026
Copilot AI lite review requested due to automatic review settings September 17, 2026 15:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Pull request overview

This PR aligns the public signature wrapper declarations with the implementation configuration so disabled wrappers produce compile-time errors instead of link-time failures.

Changes:

  • Moves automatic NO_SIG_WRAPPER detection into signature.h.
  • Guards signature wrapper prototypes when NO_SIG_WRAPPER is defined.
  • Removes duplicate detection from signature.c and updates the Arduino configuration macro.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
wolfssl/wolfcrypt/signature.h Defines the wrapper-disabled state and conditionally exposes wrapper prototypes.
wolfcrypt/src/signature.c Relies on the header-provided configuration guard.
examples/configs/user_settings_arduino.h Uses NO_SIG_WRAPPER to disable signature wrappers.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

3 participants