Skip to content

WiFiSecureClient fixes and improvements #255

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 3 commits into from
Mar 10, 2017
Merged

WiFiSecureClient fixes and improvements #255

merged 3 commits into from
Mar 10, 2017

Conversation

copercini
Copy link
Contributor

-Best MbedTLS error handling, returning the error code and translate it to a error message.

-Fix for the issue #223

-Partial fix for the issue #211 (avoid crashing, just return mbedtls error and close the connection), but still don't close in described situation.

-Add CA certificate in example, because SHA1 fingerprint is broken now, details in https://shattered.io/

SHA1 fingerprint is broken now: more info: https://shattered.io
When occur an error in WiFiClientSecure library just return the error message
and clean the context avoiding crash - fix for #211

Translate MbedTLS error codes in messages for best understanding
mbedtls_pk_parse_key needs a const unsigned char * certificate. In old implementation the certificate was declarated as char * so first it converts to unsigned and after to const.

When we convert signed to unsigned it may result in a +1 larger output.

Fix issue #223
@me-no-dev me-no-dev merged commit e304474 into espressif:master Mar 10, 2017
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.

2 participants