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

Don't send 0-RTT data when ticket is expired #370

Merged
merged 1 commit into from
Jul 1, 2019
Merged

Don't send 0-RTT data when ticket is expired #370

merged 1 commit into from
Jul 1, 2019

Conversation

ocheron
Copy link
Contributor

@ocheron ocheron commented Jun 30, 2019

The condition with isAgeValid was used for extension "pre_shared_key"
but not when determining whether to send 0-RTT data or not. With an
expired ticket adjustExtentions was called and modified an extension
which was not "pre_shared_key".

This commit rearranges the variables so that the result of isAgeValid
is used at all necessary places.

The condition with isAgeValid was used for extension "pre_shared_key"
but not when determining whether to send 0-RTT data or not.  With an
expired ticket adjustExtentions was called and modified an extension
which was not "pre_shared_key".

This commit rearranges the variables so that the result of isAgeValid
is used at all necessary places.
@kazu-yamamoto kazu-yamamoto self-requested a review July 1, 2019 02:34
Copy link
Collaborator

@kazu-yamamoto kazu-yamamoto left a comment

Choose a reason for hiding this comment

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

LGTM

kazu-yamamoto added a commit to kazu-yamamoto/hs-tls that referenced this pull request Jul 1, 2019
@kazu-yamamoto kazu-yamamoto merged commit 6659eee into haskell-tls:master Jul 1, 2019
@ocheron ocheron deleted the psk-age-valid branch July 2, 2019 04:48
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.

None yet

2 participants