Skip to content

server: allow splitting and reassembling a StartHandshake - #127

Merged
djc merged 1 commit into
rustls:mainfrom
lucab:lucab/split-start-handshake
Sep 17, 2025
Merged

djc merged 1 commit into
rustls:mainfrom
lucab:lucab/split-start-handshake

Conversation

@lucab

@lucab lucab commented Sep 16, 2025

Copy link
Copy Markdown
Contributor

This adds two methods to the existing StartHandshake in order to allow splitting and reconstructing the underlying components.

For context and usecase, see #125.

This adds two methods to the existing `StartHandshake` in order to
allow splitting and reconstructing the underlying components.

@ctz ctz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess the other option would be to make these fields public -- this API also commits us to never adding new fields that need non-trivial values (and I think this is OK for this struct).

@djc
djc merged commit a58a6e9 into rustls:main Sep 17, 2025
@djc

djc commented Sep 17, 2025

Copy link
Copy Markdown
Member

I guess the other option would be to make these fields public -- this API also commits us to never adding new fields that need non-trivial values (and I think this is OK for this struct).

I'll follow up on that.

@lucab

lucab commented Sep 17, 2025

Copy link
Copy Markdown
Contributor Author

I guess the other option would be to make these fields public

Indeed. Two options I considered (and discarded) before opening this PR:

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.

3 participants