Skip to content

Tests: fix build guards for client-less and TLS 1.2-only builds - #12254

Merged
philljj merged 1 commit into
wolfSSL:masterfrom
SparkiDev:fix-test-build-guards
Nov 26, 2026
Merged

philljj merged 1 commit into
wolfSSL:masterfrom
SparkiDev:fix-test-build-guards

Conversation

@SparkiDev

Copy link
Copy Markdown
Contributor

Description

test_TLSX_SecureRenegotiation_parse calls the TLS 1.2 client method unguarded; wrap its client part in #ifndef NO_WOLFSSL_CLIENT so the server-side checks still run in client-less builds. test_tls_msgtype_connection_id needs TLS 1.3. Document why the hook in tests/api.c is guarded exactly as its only caller.

Testing

./configure --enable-secure-renegotiation --enable-static --disable-shared CPPFLAGS=-DNO_WOLFSSL_CLIENT
./configure --enable-dtls --enable-dtlscid --disable-tls13

test_TLSX_SecureRenegotiation_parse calls the TLS 1.2 client method
unguarded; wrap its client part in #ifndef NO_WOLFSSL_CLIENT so the
server-side checks still run in client-less builds.
test_tls_msgtype_connection_id needs TLS 1.3. Document why the hook in
tests/api.c is guarded exactly as its only caller.
@SparkiDev SparkiDev self-assigned this Nov 25, 2026
Copilot AI balanced review requested due to automatic review settings November 25, 2026 00:21

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.

🟢 Approval recommended

No active review issues are recorded for the API test-guard changes.

No open issues 🎉

What changed in this PR

This PR adjusts API test guards for client-less and TLS 1.2-only builds without changing library behavior.

Changes:

  • Guard client-side secure-renegotiation checks while preserving server-side checks.
  • Require TLS 1.3 for the connection-ID message test.
  • Document why an existing handshake hook shares its caller’s build guards.
File Description
tests/​api/​test_tls_parse.c Excludes client-only checks when NO_WOLFSSL_CLIENT is defined.
tests/​api/​test_tls_msgtype.c Adds the TLS 1.3 requirement to the connection-ID test guard.
tests/​api.c Adds a comment explaining the existing hook guards; no functional change.

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

MemBrowse Memory Report · Explore what changed →

zephyr-frdm_rw612

  • FLASH: datas +16 B, log_const_area -8 B, rodata +108 B, text +13,816 B (+4.9%, 296,396 B / 67,108,864 B, total: 0% used)
  • RAM: bss +49 B, datas +16 B (+0.1%, 58,423 B / 983,040 B, total: 6% used)

No memory changes detected for:


Catch memory regressions in CI with MemBrowse. Free for open source.

@philljj

philljj commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

confirmed fixed. tests god with multi-test

@philljj
philljj merged commit db43287 into wolfSSL:master Nov 26, 2026
433 of 437 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