mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-28 07:51:36 -04:00
Merge pull request #9463 from sezrab/psa_util_in_builds_without_psa-3.6
[Backport 3.6] psa_util.c included in builds without PSA, which can break the build
This commit is contained in:
commit
70658db50a
5
ChangeLog.d/psa_util_in_builds_without_psa.txt
Normal file
5
ChangeLog.d/psa_util_in_builds_without_psa.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Bugfix
|
||||||
|
* When MBEDTLS_PSA_CRYPTO_C was disabled and MBEDTLS_ECDSA_C enabled,
|
||||||
|
some code was defining 0-size arrays, resulting in compilation errors.
|
||||||
|
Fixed by disabling the offending code in configurations without PSA
|
||||||
|
Crypto, where it never worked. Fixes #9311.
|
@ -428,7 +428,7 @@
|
|||||||
|
|
||||||
/* psa_util file features some ECDSA conversion functions, to convert between
|
/* psa_util file features some ECDSA conversion functions, to convert between
|
||||||
* legacy's ASN.1 DER format and PSA's raw one. */
|
* legacy's ASN.1 DER format and PSA's raw one. */
|
||||||
#if defined(MBEDTLS_ECDSA_C) || (defined(MBEDTLS_PSA_CRYPTO_C) && \
|
#if (defined(MBEDTLS_PSA_CRYPTO_CLIENT) && \
|
||||||
(defined(PSA_WANT_ALG_ECDSA) || defined(PSA_WANT_ALG_DETERMINISTIC_ECDSA)))
|
(defined(PSA_WANT_ALG_ECDSA) || defined(PSA_WANT_ALG_DETERMINISTIC_ECDSA)))
|
||||||
#define MBEDTLS_PSA_UTIL_HAVE_ECDSA
|
#define MBEDTLS_PSA_UTIL_HAVE_ECDSA
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user