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

Fix early data send and receive on client and server #376

Open
wants to merge 1 commit into
base: tls13-prototype
Choose a base branch
from

Conversation

lhuang04
Copy link
Collaborator

@lhuang04 lhuang04 commented Oct 11, 2021

Summary:
Courtesy to Bill Warshaw. We found two issues related to early data in client and server, it happens on
existing early data API and when MPS is not used.

  • Client sends one extra byte as MBEDTLS_SSL_MSG_APPLICATION_DATA
  • Server doesn't set early data length properly, and the server early
    data call back doesn't work because early data length is not set.

Also add a test case for it.

Test Plan:
tests/ssl-opt.sh -p -s -f "status - accepted"

Reviewers:

Subscribers:

Tasks:

Tags:

Notes:

  • Pull requests cannot be accepted until the PR follows the contributing guidelines. In particular, each commit must have at least one Signed-off-by: line from the committer to certify that the contribution is made under the terms of the Developer Certificate of Origin.
  • This is just a template, so feel free to use/remove the unnecessary things

Description

A few sentences describing the overall goals of the pull request's commits.

Status

READY/IN DEVELOPMENT/HOLD

Requires Backporting

When there is a bug fix, it should be backported to all maintained and supported branches.
Changes do not have to be backported if:

  • This PR is a new feature\enhancement
  • This PR contains changes in the API. If this is true, and there is a need for the fix to be backported, the fix should be handled differently in the legacy branch

Yes | NO
Which branch?

Migrations

If there is any API change, what's the incentive and logic for it.

YES | NO

Additional comments

Any additional information that could be of interest

Todos

  • Tests
  • Documentation
  • Changelog updated
  • Backported

Steps to test or reproduce

Outline the steps to test or reproduce the PR here.

Summary:
Found two issues related to early data client and server, it happens on
existing early data API and when MPS is not used.

* client send extra byte
* server didn't set early data length properly, and the searver early
data call back is not called.

Also add a test case for it.

Test Plan:
tests/ssl-opt.sh -p -s -f "status - accepted"

Reviewers:

Subscribers:

Tasks:

Tags:
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.

1 participant