Skip to content

tests: fix test_client_nofail() ignoring callback_functions CA/cert/key - #11388

Open
thiagodoregosousa wants to merge 2 commits into
wolfSSL:masterfrom
thiagodoregosousa:fix/test-client-nofail-ca
Open

tests: fix test_client_nofail() ignoring callback_functions CA/cert/key#11388
thiagodoregosousa wants to merge 2 commits into
wolfSSL:masterfrom
thiagodoregosousa:fix/test-client-nofail-ca

Conversation

@thiagodoregosousa

Copy link
Copy Markdown

Client half of test_wolfSSL_client_server_nofail()'s driver pair silently ignores callback_functions.caPemFile/certPemFile/keyPemFile and always loads the hardcoded classical defaults, even though its server-side counterpart already honors the equivalent fields for certPemFile/keyPemFile.

First commit adds a regression test (fails on the parent commit, using an ECC server cert the default classical CA can't verify). Second commit adds the fix: caFile/certFile/keyFile locals, overridden when callback_functions supplies them.

Tested locally: built and ran the full tests/unit.test --api suite before and after (0 failures either way), and confirmed the new test fails on the first commit and passes on the second.

Client half of test_wolfSSL_client_server_nofail() silently ignores
callback_functions.caPemFile/certPemFile/keyPemFile, unlike its server
counterpart. This test fails until the next commit fixes it.
Add caFile/certFile/keyFile locals, overridden when callback_functions
supplies them. Same pattern test_server_nofail() already uses for its
own cert/key.
@wolfSSL-Bot

Copy link
Copy Markdown

Can one of the admins verify this patch?

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