Skip to content

support for dynamic link to libwolfssl and add test case#349

Merged
bigbrett merged 1 commit into
wolfSSL:mainfrom
JacobBarthelmeh:build
May 4, 2026
Merged

support for dynamic link to libwolfssl and add test case#349
bigbrett merged 1 commit into
wolfSSL:mainfrom
JacobBarthelmeh:build

Conversation

@JacobBarthelmeh
Copy link
Copy Markdown
Contributor

No description provided.

@JacobBarthelmeh JacobBarthelmeh self-assigned this May 4, 2026
Copilot AI review requested due to automatic review settings May 4, 2026 16:04
Copy link
Copy Markdown

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #349

Scan targets checked: wolfhsm-core-bugs, wolfhsm-src

No new issues found in the changed files. ✅

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

Note

Copilot was unable to run its full agentic suite in this review.

This PR adds a new WOLFSSL_LIB=1 build mode so several targets can link against an installed libwolfssl instead of compiling wolfSSL sources from the tree, and adds CI coverage for that path. It also updates certificate parsing to avoid calling a wolfSSL helper that is no longer publicly accessible.

Changes:

  • Add WOLFSSL_LIB=1 branches across Makefiles to skip WOLFSSL_USER_SETTINGS, link -lwolfssl, and adjust source selection.
  • Replace direct use of GetSequence in wh_server_cert.c with a local DER sequence helper.
  • Add a GitHub Actions workflow that builds/installs wolfSSL and compiles multiple targets in WOLFSSL_LIB=1 mode, plus a POSIX smoke test.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
tools/whnvmtool/Makefile Adds installed-wolfSSL link mode for the whnvmtool build.
test/Makefile Adds installed-wolfSSL link mode for test builds.
src/wh_server_cert.c Replaces a private ASN sequence parser call with a local helper.
examples/posix/wh_posix_server/Makefile Adds installed-wolfSSL link mode for the POSIX server example.
examples/posix/wh_posix_client/Makefile Adds installed-wolfSSL link mode for the POSIX client example.
benchmark/Makefile Adds installed-wolfSSL link mode for benchmark builds.
.github/workflows/build-and-test-wolfssl-lib.yml Adds CI to build and smoke-test the new installed-wolfSSL mode.

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

Comment thread src/wh_server_cert.c
Comment thread examples/posix/wh_posix_server/Makefile
Comment thread .github/workflows/build-and-test-wolfssl-lib.yml
Comment thread .github/workflows/build-and-test-wolfssl-lib.yml
Comment thread .github/workflows/build-and-test-wolfssl-lib.yml
Comment thread .github/workflows/build-and-test-wolfssl-lib.yml
Comment thread src/wh_server_cert.c Outdated
@JacobBarthelmeh JacobBarthelmeh marked this pull request as draft May 4, 2026 16:16
use local utils function for force zero and compare with SHE

set HAVE_ANONYMOUS_INLINE_AGGREGATES=1 with build of wolfSSL in test case

rename internal function and adjust test configure

add macro guards around bench and crypt test code

set LD_LIBRARY_PATH in test case
Copy link
Copy Markdown

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #349

Scan targets checked: wolfhsm-core-bugs, wolfhsm-src

No new issues found in the changed files. ✅

Copy link
Copy Markdown
Contributor

@bigbrett bigbrett left a comment

Choose a reason for hiding this comment

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

Sweet!

@bigbrett bigbrett merged commit 4aeecb2 into wolfSSL:main May 4, 2026
92 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.

6 participants