Skip to content

20260420-test-fixes#10262

Open
douzzer wants to merge 5 commits intowolfSSL:masterfrom
douzzer:20260420-test-fixes
Open

20260420-test-fixes#10262
douzzer wants to merge 5 commits intowolfSSL:masterfrom
douzzer:20260420-test-fixes

Conversation

@douzzer
Copy link
Copy Markdown
Contributor

@douzzer douzzer commented Apr 20, 2026

wolfcrypt/test/test.c: add missing FIPS gating for backward-incompatible NULL arg tests in hkdf_test() and srtpkdf_test(). (fixes #10238 / 3175c33).

linuxkm/module_hooks.c: in wolfssl_init() FIPS_OPTEST_FULL_RUN_AT_MODULE_INIT code path (currently unused), add missing declaration for i (fixes F-3026).

fix examples/pem/ and scripts/pem.test:

examples/pem/pem.c:

  • improve error messages,
  • add wc_SetSeed_Cb() if WC_RNG_SEED_CB, and
  • add wolfCrypt_Init() and wolfCrypt_Cleanup().

scripts/pem.test:

  • fix exit code to unmask script failure,
  • add configured feature detection,
  • improve error messages and handling,
  • add configuration gating around subtests, and
  • comment out currently failing subtests.

tested with

wolfssl-multi-test.sh ...
super-quick-check
linuxkm-fips-v6-insmod-cust-kernel-2
all-crypto-openssl-extra-coexist-fips-v6
fips-140-3-v6-optest-acvp-sp-asm

douzzer added 3 commits April 20, 2026 10:17
…ble NULL arg tests in hkdf_test() and srtpkdf_test().
…ULE_INIT code path (currently unused), add missing declaration for i.
examples/pem/pem.c:
* improve error messages,
* add wc_SetSeed_Cb() if WC_RNG_SEED_CB, and
* add wolfCrypt_Init() and wolfCrypt_Cleanup().

scripts/pem.test:
* fix exit code to unmask script failure,
* add configured feature detection,
* improve error messages and handling,
* add configuration gating around subtests, and
* comment out currently failing subtests.
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 #10262

Scan targets checked: linuxkm-bugs, linuxkm-src

No new issues found in the changed files. ✅

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 20, 2026

MemBrowse Memory Report

No memory changes detected for:

scripts/pem.test:
* add setup for WOLFSSL_NO_DER_TO_PEM,
* exit early with skip code if executable dependencies are missing or WOLFSSL_NO_PEM or NO_CODING, and
* add clean skip clauses to convert_to_pem(), compare_pem(), and pem_der_exp(), if WOLFSSL_NO_DER_TO_PEM.
@douzzer douzzer force-pushed the 20260420-test-fixes branch from 9d70142 to 8b67392 Compare April 20, 2026 17:49
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