Skip to content

Preserve DTLS 1.3 client key shares on cookie-only retries - #163

Merged
algesten merged 4 commits into
algesten:mainfrom
JoTurk:jo/fix-cookie-retry
Sep 18, 2026
Merged

algesten merged 4 commits into
algesten:mainfrom
JoTurk:jo/fix-cookie-retry

Conversation

@JoTurk

@JoTurk JoTurk commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Preserve the DTLS 1.3 client's existing key exchange when a HelloRetryRequest contains only a cookie, keeping the second ClientHello's key share unchanged and allowing handshakes with servers that enforce this requirement. Continue generating a new key exchange when the retry selects a key exchange group.

Add regression coverage for key-share preservation and a complete cookie-only retry handshake with wolfSSL. Use OpenSSL certificate helpers so the cookie tests run in both crypto-provider CI configurations, and document the fix in the changelog.

@JoTurk
JoTurk marked this pull request as draft September 18, 2026 11:15
@JoTurk
JoTurk force-pushed the jo/fix-cookie-retry branch from 3c08caa to 4c86862 Compare September 18, 2026 11:35
@JoTurk
JoTurk marked this pull request as ready for review September 18, 2026 11:42
@algesten algesten changed the title dtls13: preserve key-shares on cookie-only retries Preserve DTLS 1.3 client key shares on cookie-only retries Sep 18, 2026
@algesten
algesten merged commit 815ace1 into algesten:main Sep 18, 2026
@algesten

Copy link
Copy Markdown
Owner

Looks great! Thanks!

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