-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
CMake install picks up the build_info.h from TF-PSA-Crypto #10022
Comments
Thanks for reporting this! What's going on is that We should arrange that the
As to how to resolve this: as we're making legacy crypto internal, we're planning to sort the headers from |
Note that although the bug only affects Mbed TLS users, the fix will be partially, maybe even fully in TF-PSA-Crypto. |
Thank you for the detailed response. Please keep in mind that I have filed a simple bug against mbedtls which trivially shows that including I wrote:
A proper fix for this bug is for |
Well, yes, I'm analyzing the cause of the bug. The fix is unlikely to involve any change to The missing version macros are just one symptom. Another is that the configuration isn't getting picked up! The primary job of |
Summary
mbedtls development branch
mbedtls/build_info.h
no longer definesMBEDTLS_VERSION_NUMBER
The entire contents of
mbedtls/build_info.h
is effectively only#include "tf-psa-crypto/build_info.h"
System information
Mbed TLS version (number or commit id): 243e13f
Operating system and version: Fedora Linux 41, x86_64 architecture
Configuration (if not default, please attach
mbedtls_config.h
):Compiler and options (if you used a pre-built binary, please indicate how you obtained it):
Additional environment information:
Expected behavior
MBEDTLS_VERSION_NUMBER
should be defined.Actual behavior
MBEDTLS_VERSION_NUMBER
is not defined.Steps to reproduce
Additional information
mbedtls/build_info.h
should also#include <mbedtls/mbedtls_config.h>
mbedtls/mbedtls_config.h
is not present in mbedtls 2.x. IIRC, that usedconfig.h
.For portability, consumers should get the appropriate info from a single
#include <mbedtls/version.h>
The text was updated successfully, but these errors were encountered: