Skip to content

Fix wolfSSL interop build by defining WOLFPKCS11_USER_SETTINGS#200

Merged
dgarske merged 1 commit into
wolfSSL:masterfrom
LinuxJedi:fix-interop-options-h
Jun 22, 2026
Merged

Fix wolfSSL interop build by defining WOLFPKCS11_USER_SETTINGS#200
dgarske merged 1 commit into
wolfSSL:masterfrom
LinuxJedi:fix-interop-options-h

Conversation

@LinuxJedi

Copy link
Copy Markdown
Member

The standalone interoperability test Makefile compiles the wolfPKCS11 sources without running ./configure, so the generated wolfpkcs11/options.h does not exist. Since pkcs11.h now includes <wolfpkcs11/options.h> unless WOLFPKCS11_USER_SETTINGS is defined, the build failed with a fatal missing-header error.

Define WOLFPKCS11_USER_SETTINGS so pkcs11.h includes the local user_settings.h (already on the include path) instead of the generated options.h, restoring the pre-regression build behavior.

The standalone interoperability test Makefile compiles the wolfPKCS11
sources without running ./configure, so the generated
wolfpkcs11/options.h does not exist. Since pkcs11.h now includes
<wolfpkcs11/options.h> unless WOLFPKCS11_USER_SETTINGS is defined, the
build failed with a fatal missing-header error.

Define WOLFPKCS11_USER_SETTINGS so pkcs11.h includes the local
user_settings.h (already on the include path) instead of the generated
options.h, restoring the pre-regression build behavior.
Copilot AI review requested due to automatic review settings June 22, 2026 12:59

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.

Pull request overview

This PR fixes a standalone build regression in the wolfSSL interoperability test harness by ensuring wolfPKCS11 headers don’t require the generated wolfpkcs11/options.h when ./configure hasn’t been run.

Changes:

  • Add -DWOLFPKCS11_USER_SETTINGS to the interoperability test Makefile’s common preprocessor flags so wolfpkcs11/pkcs11.h includes the local user_settings.h instead of <wolfpkcs11/options.h>.

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

@dgarske dgarske merged commit 8ae8515 into wolfSSL:master Jun 22, 2026
79 checks passed
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.

4 participants