Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the read buffer for the handshake process, make the write buffer available for cert verification #106

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bugadani
Copy link
Collaborator

@bugadani bugadani commented Apr 19, 2023

This may or may not be safe to do. It depends whether there are any read records that need to live past a response. The server cert is one such piece of data, but we pass that to the verifier, which can choose to store it however it wants to.

@bugadani bugadani force-pushed the single_buffer branch 2 times, most recently from 0c8fba3 to 7a0c3f6 Compare April 19, 2023 19:43
@bugadani bugadani marked this pull request as draft April 21, 2023 12:05
@bugadani

This comment was marked as outdated.

@bugadani bugadani marked this pull request as ready for review April 21, 2023 13:59
Copy link
Member

@lulf lulf left a comment

Choose a reason for hiding this comment

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

This change feels a bit risk in that future modifications to the code could break the invariant. Is it worth the savings?

@bugadani
Copy link
Collaborator Author

So far only one thing suggests this may not be a good idea: clients can send early data at basically any point of the handshake process after server hello. Since we don't support early data yet, and treat the whole handshake process as one atomic step, I think this PR is at least not completely broken.

My best idea is to leave this PR hanging for a while, until we know more. It isn't very complicated and doesn't cost anything, I think :)

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