-
Notifications
You must be signed in to change notification settings - Fork 446
zephyr: mbedlts improvements #1805
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
base: develop
Are you sure you want to change the base?
Conversation
|
Thanks for raising and working on this. Fixing the pre-commit required changes should fix the the CI pre-commit, documentation and distribution builds. In terms of the zephyr build, I would prefer that the generic MbedTLS (and WolfSSL) library setup configuration files were kept within the libcoap/zephyr directory for anyone to easily use rather then being in the libcoap/examples/zephyr directory. |
|
Thank you for you comments.
You mean the In zephyr, the extra configuration file it is usually used (in other examples) as build -p always -b <board> libcoap/examples/zephyr/client-src --extra-conf libcoap_mbedtls.confthe config file is relative to the application directory. So I thought it was good idea to move it there, to simplify the west command on a standard Zephyr build. What do you think? I guess we could still move the file to Or we could just enable mbedtls by default in Zephyr (i.e. move the stuff in Or just keep it like I suggested so we can simplify the Whatever you prefer, I can update the documentation to match. |
Add some improvements to make secure coap work on Zephyr 4.3.0 with mbedtls (not using Zephyr TLS protocol options).
93ca450 to
d73faea
Compare
|
I have applied the pre-commit and fixed the Makefile. |
We now set the build options to zephyr, so we make use of the internal mbedtl in zephyr, so we do not require a specific header file anymore.
d73faea to
aa57646
Compare
|
Ok this one is tricky. Zephyr mbedtls does not expose What do you think? |
Actually it does if MBEDTLS_VERSION_C is defined. This was one of the reasons for having That said, I am not a Zephyr expert and there may be better ways to do things. |
|
Lets try this first: zephyrproject-rtos/zephyr#99923 Please, bear with me on this 😅 Thank you for your time. |
The challenge here is that we can currently build for MBedTLS, but builds will fail if someone is using a release version of Zephyr that does not include this fix. |
|
can we just set this value as what is the earliest zephyr version you want to support? |
Certainly base 4.3.0 version, and ideally a couple of versions earlier. |
Add some improvements to make secure coap work on Zephyr 4.3.0 with mbedtls (not using Zephyr TLS protocol options).