Skip to content

Fix tls ecdh curve mismatch (wolfTPM build test CI failures)#473

Open
aidangarske wants to merge 1 commit intowolfSSL:masterfrom
aidangarske:fix-tls-ecdh-curve-mismatch
Open

Fix tls ecdh curve mismatch (wolfTPM build test CI failures)#473
aidangarske wants to merge 1 commit intowolfSSL:masterfrom
aidangarske:fix-tls-ecdh-curve-mismatch

Conversation

@aidangarske
Copy link
Member

Fix CI failure with make test wolfTPM

Copilot AI review requested due to automatic review settings March 20, 2026 22:03
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a CI failure in make test wolfTPM by ensuring TLS ECDHE ephemeral keys are regenerated when TLS key share negotiation changes the selected ECC curve, and by aligning the example TLS test script’s client/server invocations with the intended TLS version parameterization.

Changes:

  • Regenerate the TPM-backed ephemeral ECDH key when the negotiated TLS curve differs from the currently loaded key’s curve.
  • Update examples/run_examples.sh to pass the requested TLS version (-v $3) to the wolfSSL example server/client and increase the startup delay for the server-side test flow.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/tpm2_cryptocb.c Detects TLS curve changes and unloads/regenerates the cached TPM ECDH key accordingly.
examples/run_examples.sh Ensures TLS version argument is actually used in wolfSSL example server/client runs; increases wait time for server startup.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aidangarske aidangarske force-pushed the fix-tls-ecdh-curve-mismatch branch from 7b1f3c7 to c12ea75 Compare March 20, 2026 22:21
@aidangarske aidangarske requested a review from dgarske March 20, 2026 22:22
@aidangarske aidangarske marked this pull request as ready for review March 20, 2026 22:22
@aidangarske aidangarske requested review from Copilot and removed request for Copilot March 20, 2026 22:22
@aidangarske aidangarske changed the title Fix tls ecdh curve mismatch Fix tls ecdh curve mismatch (wolfTPM build test CI failures) Mar 20, 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.

4 participants