aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGilles Peskine <Gilles.Peskine@arm.com>2024-05-29 09:34:20 +0200
committerGilles Peskine <Gilles.Peskine@arm.com>2024-05-29 09:44:20 +0200
commitc8d45cd3fc499b6f1a544ba8786678e6f597d30f (patch)
treef09e9a067672a6d1e8873897bebd01ce24c06ef6 /include
parent9df7806b370727d7c453ba9a0959f6b4b6176216 (diff)
downloadmbedtls-c8d45cd3fc499b6f1a544ba8786678e6f597d30f.zip
mbedtls-c8d45cd3fc499b6f1a544ba8786678e6f597d30f.tar.gz
mbedtls-c8d45cd3fc499b6f1a544ba8786678e6f597d30f.tar.bz2
Error on unexpectedly defined symbols
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Diffstat (limited to 'include')
-rw-r--r--include/mbedtls/build_info.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/mbedtls/build_info.h b/include/mbedtls/build_info.h
index e13e236..cf38f90 100644
--- a/include/mbedtls/build_info.h
+++ b/include/mbedtls/build_info.h
@@ -101,8 +101,12 @@
#define inline __inline
#endif
-#undef MBEDTLS_CONFIG_FILES_READ
-#undef MBEDTLS_CONFIG_IS_FINALIZED
+#if defined(MBEDTLS_CONFIG_FILES_READ)
+#error "Something went wrong: MBEDTLS_CONFIG_FILES_READ defined before reading the config files!"
+#endif
+#if defined(MBEDTLS_CONFIG_IS_FINALIZED)
+#error "Something went wrong: MBEDTLS_CONFIG_IS_FINALIZED defined before reading the config files!"
+#endif
/* X.509, TLS and non-PSA crypto configuration */
#if !defined(MBEDTLS_CONFIG_FILE)