-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
mbedTLS: Update to new LTS v3.6.0 #90482
Conversation
Seems like some warnings in mbedtls code creep up to our own module code, where we don't disable warnings as we want them for Godot code:
If that's the only one we could maybe fix mbedtls and PR the warning fix upstream. If there's more than that, we should look into how to disable warnings for thirdparty code in a more comprehensive manner. Or just use pragrams to disable warnings around the relevant includes in our mbedtls module code. I just found out that MSVC has some support for an equivalent of |
This seems already tracked upstream via Mbed-TLS/mbedtls#9020 and since we don't directly use In the meantime, I'll see if we can completely drop the |
7c36639
to
a49ff76
Compare
@akien-mga seems like I managed to remove the PSA headers completely, that should fix the warnings/errors too. EDIT: Nevermind, the build was picking up system headers as substitutes :/ , will need some more work. |
a49ff76
to
2b480cb
Compare
From #90482 (comment) :
Well, it seems that at least mbedTLS 3.6.0 is too intertwined with I'll see if I can find a workaround for the MSVC errors. |
Keep module compatibility with mbedtls 2.x (old LTS branch). A patch has been added to allow compiling after removing all the `psa_*` files from the library folder (will look into upstreaming it). Note: mbedTLS 3.6 finally enabled TLSv1.3 by default, but it requires some module changes, and to enable PSA crypto (new "standard" API specification), so it might be best done in a separate commit/PR.
2b480cb
to
40fa684
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.
Looks great!
Thanks! |
Keep module compatibility with mbedtls 2.x (old LTS branch).
A patch has been added to allow compiling after removing all the
psa_*
files from the library folder (will look into upstreaming it).Note: mbedTLS 3.6 finally enabled TLSv1.3 by default, but it requires some module changes, and to enable PSA crypto (new "standard" API specification), so it might be best done in a separate commit/PR.
Closes #82282