Skip to content

Fix MFLN probe and allow returning whether MFLN succeeded or not after a connection. #6000

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

Merged
merged 9 commits into from
Apr 25, 2019

Conversation

earlephilhower
Copy link
Collaborator

@earlephilhower earlephilhower commented Apr 19, 2019

probeMFLN was failing on some connection attempts to servers which only
supported EC based ciphers because it did not include the proper TLS
handshake extensions to list what kinds of ECs it supported.

Add those to the probeMFLN ClientHello message to make probes pass.

Add client.getMFLNStatus method, returns MFLN state

After a connection it is useful to check whether MFLN negotiation
succeeded. getMFLNStatus returns a bool (valid only after
client.connect() succeeds, of course) indicating whether the requested
buffer sizes were negotiated successfully.

Fixes #5996

probeMFLN was failing on some connection attempts to servers which only
supported EC based ciphers because it did not include the proper TLS
handshake extensions to list what kinds of ECs it supported.

Add those to the probeMFLN ClientHello message to make probes pass.

Partially fixes esp8266#5996
@earlephilhower earlephilhower changed the title Add extensions to probe message for EC, others WIP - Add extensions to probe message for EC, others Apr 19, 2019
We now send multiple extensions, so need to parse the actual ServerHello
extensions field to see if MFLN is returned.  Skip unknown ones without
complaining.
@earlephilhower earlephilhower changed the title WIP - Add extensions to probe message for EC, others Add extensions to probe message for EC, others Apr 20, 2019
After a connection it is useful to check whether MFLN negotiation
succeeded.  getMFLNStatus returns a bool (valid only after
client.connect() succeeds, of course) indicating whether the requested
buffer sizes were negotiated successfully.
@earlephilhower earlephilhower changed the title Add extensions to probe message for EC, others Fix MFLN probe and allow returning whether MFLN succeeded or not after a connection. Apr 21, 2019
Copy link
Collaborator

@d-a-v d-a-v left a comment

Choose a reason for hiding this comment

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

LGTM!

@earlephilhower earlephilhower merged commit f6dd826 into esp8266:master Apr 25, 2019
@earlephilhower earlephilhower deleted the probefix1 branch April 25, 2019 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants