From 5255a9e805766f8c9f7d1385d2a3c43f0a66afcc Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Sun, 15 Sep 2024 19:54:22 +0200 Subject: [PATCH] Include "error.h" for MBEDTLS_ERROR_ADD Signed-off-by: Gilles Peskine --- tf-psa-crypto/tests/suites/test_suite_dhm.function | 1 + tf-psa-crypto/tests/suites/test_suite_pkcs5.function | 1 + tf-psa-crypto/tests/suites/test_suite_pkparse.function | 1 + tf-psa-crypto/tests/suites/test_suite_rsa.function | 1 + 4 files changed, 4 insertions(+) diff --git a/tf-psa-crypto/tests/suites/test_suite_dhm.function b/tf-psa-crypto/tests/suites/test_suite_dhm.function index bb64ef320..6c6f15bbf 100644 --- a/tf-psa-crypto/tests/suites/test_suite_dhm.function +++ b/tf-psa-crypto/tests/suites/test_suite_dhm.function @@ -1,5 +1,6 @@ /* BEGIN_HEADER */ #include "mbedtls/dhm.h" +#include "mbedtls/error.h" static int check_get_value(const mbedtls_dhm_context *ctx, mbedtls_dhm_parameter param, diff --git a/tf-psa-crypto/tests/suites/test_suite_pkcs5.function b/tf-psa-crypto/tests/suites/test_suite_pkcs5.function index afe9f3807..f6be14208 100644 --- a/tf-psa-crypto/tests/suites/test_suite_pkcs5.function +++ b/tf-psa-crypto/tests/suites/test_suite_pkcs5.function @@ -1,4 +1,5 @@ /* BEGIN_HEADER */ +#include "mbedtls/error.h" #include "mbedtls/pkcs5.h" #include "mbedtls/cipher.h" /* END_HEADER */ diff --git a/tf-psa-crypto/tests/suites/test_suite_pkparse.function b/tf-psa-crypto/tests/suites/test_suite_pkparse.function index 2aea1b810..1cd6e2bb9 100644 --- a/tf-psa-crypto/tests/suites/test_suite_pkparse.function +++ b/tf-psa-crypto/tests/suites/test_suite_pkparse.function @@ -1,4 +1,5 @@ /* BEGIN_HEADER */ +#include "mbedtls/error.h" #include "mbedtls/pk.h" #include "mbedtls/pem.h" #include "mbedtls/oid.h" diff --git a/tf-psa-crypto/tests/suites/test_suite_rsa.function b/tf-psa-crypto/tests/suites/test_suite_rsa.function index 98ea9efb1..b84848b91 100644 --- a/tf-psa-crypto/tests/suites/test_suite_rsa.function +++ b/tf-psa-crypto/tests/suites/test_suite_rsa.function @@ -1,4 +1,5 @@ /* BEGIN_HEADER */ +#include "mbedtls/error.h" #include "mbedtls/rsa.h" #include "bignum_core.h" #include "rsa_alt_helpers.h"