-
Notifications
You must be signed in to change notification settings - Fork 59
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
Initialisation Fixes #61
Conversation
I'm not entirely sure why there are extra commits in there... I forked from master, then branched, made changes and then am looking to merge? Not sure what I messed up? |
Hello, |
@danielbarry Try fetching latest master and rebase your branch on top of it and then force push. Be attentive. |
0152e4c
to
ef12460
Compare
ef12460
to
9645dd0
Compare
@gamelaster @Avamander I think that's now done? |
Looks correct(er) now. |
Does MbedTLS have these changes upstream? |
@Avamander I hadn't checked... But:
[1] https://github.com/ARMmbed/mbedtls/blob/development/library/ecjpake.c#L108 [2] https://github.com/ARMmbed/mbedtls/blob/development/library/ssl_cli.c#L3257 [3] https://github.com/ARMmbed/mbedtls/blob/development/library/ssl_cli.c#L3674 [4] https://github.com/ARMmbed/mbedtls/blob/development/library/ssl_tls.c#L858 [5] https://github.com/ARMmbed/mbedtls/blob/development/library/ssl_tls.c#L1149 |
It sounds to me like MbedTLS should just be updated, turned into a submodule. What do you think? |
@Avamander That sounds sensible, otherwise you're always going to miss out on upstream patches. Would probably make sense to point it at their latest release branch rather than the development branch :) |
Perhaps it would make sense to fork your own version - that way you can apply patches over the top until the next release is ready? |
@Avamander That's exactly what I thought about, when I've read your previous comment. Maybe as a first step, mbedtls should be turned into submodule at exactly same state of repo that was originally in SDK. This could be merged immediately. This would preserve history, so we will know, where we started. Then another pull request could try updating the submodule to latest release. |
Good thinking, seems the commit version is here: https://github.com/bouffalolab/bl_iot_sdk/blob/ee4a10b1a1e3609243bd5e7b3a45f02d768f6c14/components/security/mbedtls/version Do you want me to make a PR? |
Yes, one commit to delete the folder, one to set it to current repo equivalent. |
5acb2ea
to
3c827b2
Compare
Closing in favor of #64 |
@gamelaster I think there are still some points here, but I'll open a new PR for those. Apparently the PineCone will arrive at some time so I could even test it for real :) |
Okay, thank you @danielbarry 😊 |
Some fixes around possible uninitialized variables that could lead to undesired behaviour. They are unlikely to be seen in the wild as they would mostly require misconfiguration.
I've tried to make sure they are initialized to sane defaults and throw a compiler error where that's not really possible (neither IPv4 or IPv6 set).