Repository navigation
Tests: fix build guards for client-less and TLS 1.2-only builds - #12254
Merged
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
🟢 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
|
Contributor
|
confirmed fixed. tests god with multi-test |
philljj
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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