Skip to content

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

Merged
earlephilhower merged 9 commits into
esp8266:masterfrom
earlephilhower:probefix1
Apr 25, 2019
Merged

earlephilhower merged 9 commits into
esp8266:masterfrom
earlephilhower:probefix1

Conversation

@earlephilhower

@earlephilhower earlephilhower commented Apr 19, 2019 •

Copy link
Copy Markdown
Collaborator

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

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

Copy link
Copy Markdown
Collaborator

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

Development

Successfully merging this pull request may close these issues.

probeMaxFragmentLength of BearSSL::WiFiClientSecure is not compatible with OpenSSL supporting Maximum Fragment Length Negotiation extension

3 participants