mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 16:55:42 +00:00
Include config_psa.h from psa/crypto.h
When the new PSA crypto configuration mechanism MBEDTLS_PSA_CRYPTO_CONFIG is disabled, legacy configurations must keep working, even if they don't include the new header file mbedtls/config_psa.h. Code that uses or implements PSA crypto interfaces needs some of the symbols defined by the new header file. Therefore, include the new header file via PSA crypto headers, which are included everywhere mbedtls/config_psa.h is needed. Include it early, in psa/crypto_platform.h, just after including mbedtls/config.h, so that its symbols are available wherever the symbols from mbedtls/config.h is available. This fixes the unit tests with configs/config-psa-crypto.h: some unit tests were failing, revealing that library features controlled with the new symbols were no longer getting built. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
f4a6a05e9d
commit
bce4dc028f
|
@ -41,6 +41,10 @@
|
||||||
#include MBEDTLS_CONFIG_FILE
|
#include MBEDTLS_CONFIG_FILE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Translate between classic MBEDTLS_xxx feature symbols and PSA_xxx
|
||||||
|
* feature symbols. */
|
||||||
|
#include "mbedtls/config_psa.h"
|
||||||
|
|
||||||
/* PSA requires several types which C99 provides in stdint.h. */
|
/* PSA requires several types which C99 provides in stdint.h. */
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue