-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Fix minor BearSSL API issues #4901
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
Conversation
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 , 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. |
@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! |
Thanks for the update, @Jeroen88! |
Oops, hit wrong button there. |
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.