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 minor BearSSL API issues #4901

Merged
merged 7 commits into from
Jul 16, 2018

Conversation

earlephilhower
Copy link
Collaborator

Fixes #4882 and updates GitHub certificate fingerprint to the current one
in BearSSL_Validation example.

When setting a authentication mode or stopping, clear all others out in case
the object is being re-used.

Add in a yield during the SSL handshake to allow a graceful timeout and not
a WDT error when the remote server hiccups.

Fixes esp8266#4882 and updates GitHub certificate fingerprint to the current one
in BearSSL_Validation example.

When setting a authentication mode or stopping, clear all others out in case
the object is being re-used.

Add in a yield during the SSL handshake to allow a graceful timeout and not
a WDT error when the remote server hiccups.
@earlephilhower earlephilhower added this to the 2.4.2 milestone Jul 9, 2018
@Jeroen88
Copy link
Contributor

@earlephilhower , the clearance of the parameters for reuse of the client looks good! Maybe you should add a warning that the fingerprint in the example might be outdated and how to find the present one? I will try asap to force a server timeout to check the optimistic_yield.

@Jeroen88
Copy link
Contributor

@earlephilhower I just checked and forced a timeout on my server while doing a secure POST with ESP8266HTTPClient. The client did not crash and returned a HTTPC_ERROR_READ_TIMEOUT as it should!

@earlephilhower
Copy link
Collaborator Author

Thanks for the update, @Jeroen88!

@earlephilhower
Copy link
Collaborator Author

Oops, hit wrong button there.

@earlephilhower earlephilhower merged commit 5309188 into esp8266:master Jul 16, 2018
@earlephilhower earlephilhower deleted the bearssl_cleanup branch September 30, 2018 17:45
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.

3 participants