Define MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS in every sample program
Add #define MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS to every sample program
before the first include so that mbedtls doesn't break with future
privatization work.
Signed-off-by: Felix Conway <felix.conway@arm.com>
diff --git a/programs/hash/generic_sum.c b/programs/hash/generic_sum.c
index 3fd2b00..ac776de 100644
--- a/programs/hash/generic_sum.c
+++ b/programs/hash/generic_sum.c
@@ -5,6 +5,8 @@
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/
+#define MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS
+
#include "mbedtls/build_info.h"
#include "mbedtls/platform.h"
diff --git a/programs/hash/hello.c b/programs/hash/hello.c
index 8caae88..19408f3 100644
--- a/programs/hash/hello.c
+++ b/programs/hash/hello.c
@@ -5,6 +5,8 @@
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/
+#define MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS
+
#include "mbedtls/build_info.h"
#include "mbedtls/platform.h"
diff --git a/programs/hash/md_hmac_demo.c b/programs/hash/md_hmac_demo.c
index 494e9ef..0fe0700 100644
--- a/programs/hash/md_hmac_demo.c
+++ b/programs/hash/md_hmac_demo.c
@@ -26,6 +26,8 @@
/* First include Mbed TLS headers to get the Mbed TLS configuration and
* platform definitions that we'll use in this program. Also include
* standard C headers for functions we'll use here. */
+#define MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS
+
#include "mbedtls/build_info.h"
#include "mbedtls/md.h"