Skip to content

Fix compilation with WOLFSSL_RNG_USE_FULL_SEED. Fix benchmark compilation with MAIN_NO_ARGS.#10577

Open
kareem-wolfssl wants to merge 2 commits into
wolfSSL:masterfrom
kareem-wolfssl:zd21907
Open

Fix compilation with WOLFSSL_RNG_USE_FULL_SEED. Fix benchmark compilation with MAIN_NO_ARGS.#10577
kareem-wolfssl wants to merge 2 commits into
wolfSSL:masterfrom
kareem-wolfssl:zd21907

Conversation

@kareem-wolfssl
Copy link
Copy Markdown
Contributor

@kareem-wolfssl kareem-wolfssl commented Jun 2, 2026

Description

Fixes zd#21907, zd#21874.

Testing

Built in tests

Checklist

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

@kareem-wolfssl kareem-wolfssl self-assigned this Jun 2, 2026
Copilot AI review requested due to automatic review settings June 2, 2026 22:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a preprocessor-guard mismatch in wc_RNG initialization so builds with WOLFSSL_RNG_USE_FULL_SEED compile cleanly. The change is localized to the DRBG seed-size selection logic in the RNG initialization path.

Changes:

  • Adjusted #endif placement so the WOLFSSL_RNG_USE_FULL_SEED conditional only wraps the seedSz selection, not the subsequent declarations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kareem-wolfssl kareem-wolfssl changed the title Fix compilation with WOLFSSL_RNG_USE_FULL_SEED. Fix compilation with WOLFSSL_RNG_USE_FULL_SEED. Fix benchmark compilation with MAIN_NO_ARGS. Jun 2, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

MemBrowse Memory Report

No memory changes detected for:

@kareem-wolfssl
Copy link
Copy Markdown
Contributor Author

Retest this please

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.

2 participants