-
Notifications
You must be signed in to change notification settings - Fork 343
crypto/mbedtls: Add support for mbedtls 3.x #2112
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
38fbb72
to
97740cd
Compare
@unicornss @sirknightj please start reviewing this change. |
97740cd
to
49c15c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor suggestions. Changes look good overall, please take a look at the CI.
a762bed
to
a36b94f
Compare
455832f
to
a3dfa88
Compare
5fb85ba
to
e2ef4c2
Compare
- mbedtls 2.8.x is getting out of support: https://github.com/Mbed-TLS/mbedtls/releases/tag/mbedtls-2.28.10 - Clone mbedtls 3.6.x instead of 2.8.x via CMake dependencies - Add related code to mbedtls usage keeping the 2.8.x support intact under mbedtls version macros
e2ef4c2
to
f5d3bc5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some unused files to remove, otherwise looks good!
- This release handles mbedtls_3.x version support and has some fixes - Cleanup: removed libwebsocket patches as they are not needed anymore
- New API tlsSessionStartWithHostname can receive optional hostname and set the same - It is recommened to set the hostname and is on by default for mbedtls v3.6.3 and above - Since we receive ICE server credentials via secure API and anyway are use DTLS as WebRTC standard, we could skip this, but let's follow the recommendation as precaution
- Newer(3.6.x) mbedtls versions does not test builds on GCC versions as old as 4.4 - We keep this test for older mbedtls version (2.28.x)
f5d3bc5
to
875d520
Compare
Issue #, if available:
What was changed?
mbedtls version is updated to 3.x
Why was it changed?
2.x has reached its end of life and is not maintained anymore
How was it changed?
Support was added to the sources to support mbedtls 3.x under version check
The CMake dependency updated
What testing was done for the changes?
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.