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

Add mbedTLS support #315

Merged
merged 6 commits into from
Dec 21, 2016
Merged

Conversation

ghost
Copy link

@ghost ghost commented Dec 21, 2016

This code originally comes from this pull request: #294.
I have made some cleanup and fix one bug concerning the loading of certificates from a file.

@ghost
Copy link
Author

ghost commented Dec 21, 2016

Tested with mbed 2.2.1-2 (libmbedtls-dev on ubuntu)

@ghost ghost force-pushed the pr-294 branch 3 times, most recently from 957252c to a211c32 Compare December 21, 2016 14:04
delmet and others added 6 commits December 21, 2016 15:35
Signed-off-by: delmet <delmejt@gmail.com>
Signed-off-by: delmet <delmejt@gmail.com>
Signed-off-by: Francois Berder <francois.berder@imgtec.com>
Signed-off-by: Francois Berder <francois.berder@imgtec.com>
* Remove empty lines
* Add/Remove extra space
* Remove commented code
* Add static qualifer to variables

Signed-off-by: Francois Berder <francois.berder@imgtec.com>
The buffer must be terminated by the null character otherwise
mbedTLS discards it. This is done when loading the certificate file
to avoid a reallocation of the buffer to append a character.

Signed-off-by: Francois Berder <francois.berder@imgtec.com>
@GonZo GonZo added this to the 0.2.5 milestone Dec 21, 2016
@cheekyhalf cheekyhalf merged commit 59ea0ce into ConnectivityFoundry:master Dec 21, 2016
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.

4 participants