Skip to content

wolfprovider: fix cmd-test tooling and first-run FIPS detection#169

Open
ColtonWilley wants to merge 1 commit into
wolfSSL:masterfrom
ColtonWilley:fix-wolfprovider-fips
Open

wolfprovider: fix cmd-test tooling and first-run FIPS detection#169
ColtonWilley wants to merge 1 commit into
wolfSSL:masterfrom
ColtonWilley:fix-wolfprovider-fips

Conversation

@ColtonWilley

@ColtonWilley ColtonWilley commented Jun 16, 2026

Copy link
Copy Markdown

Fixes two genuine bugs in the wolfProvider example tooling in meta-wolfssl. Both are independent of how wolfSSL FIPS is selected.

  • wolfprovidercmd installs scripts/utils-general.sh, which cmd-test-common.sh sources (the command-line suite aborts with detect_wolfprovider_mode: command not found without it), and depends on wolfproviderenv + openssl-bin so the package runs when installed.
  • wolfproviderenv.sh detects FIPS by loading the provider module directly, so the first run on a fresh image is correct before openssl.cnf has been seeded (otherwise the first run reports a spurious config/runtime FIPS mismatch).

Scope note: an earlier revision of this PR also changed WOLFSSL_TYPE-based FIPS handling and the commercial/fips-ready bundle recipes. Those were dropped — the documented FIPS path (PREFERRED_PROVIDER_virtual/wolfssl = "wolfssl-fips" via conf/wolfssl-fips.conf) builds and detects FIPS correctly without them; WOLFSSL_TYPE is the older, undocumented path.

Verified on qemux86-64: image builds and boots, wolfprovidercmd runs the full command-line suite.

@ColtonWilley ColtonWilley requested a review from night1rider June 16, 2026 20:43
@night1rider night1rider self-assigned this Jun 16, 2026
- wolfprovidercmd: install scripts/utils-general.sh (cmd-test-common.sh sources
  it; the command-line suite aborts without it) and RDEPEND wolfproviderenv +
  openssl-bin so the package runs when installed
- wolfproviderenv.sh: detect FIPS by loading the module so the first run on a
  fresh image is correct before openssl.cnf is seeded
@ColtonWilley ColtonWilley force-pushed the fix-wolfprovider-fips branch from f986710 to 36cae77 Compare June 16, 2026 21:18
@ColtonWilley ColtonWilley changed the title wolfprovider: fix FIPS build and detection wolfprovider: fix cmd-test tooling and first-run FIPS detection Jun 16, 2026
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