aboutsummaryrefslogtreecommitdiff
path: root/include/psa/crypto_adjust_config_synonyms.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/psa/crypto_adjust_config_synonyms.h')
-rw-r--r--include/psa/crypto_adjust_config_synonyms.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/psa/crypto_adjust_config_synonyms.h b/include/psa/crypto_adjust_config_synonyms.h
index ad71050..d92ca11 100644
--- a/include/psa/crypto_adjust_config_synonyms.h
+++ b/include/psa/crypto_adjust_config_synonyms.h
@@ -16,6 +16,14 @@
#ifndef PSA_CRYPTO_ADJUST_CONFIG_SYNONYMS_H
#define PSA_CRYPTO_ADJUST_CONFIG_SYNONYMS_H
+#if !defined(MBEDTLS_CONFIG_FILES_READ)
+#error "Do not include psa/crypto_adjust_*.h manually! This can lead to problems, " \
+ "up to and including runtime errors such as buffer overflows. " \
+ "If you're trying to fix a complaint from check_config.h, just remove " \
+ "it from your configuration file: since Mbed TLS 3.0, it is included " \
+ "automatically at the right time."
+#endif /* */
+
/****************************************************************/
/* De facto synonyms */
/****************************************************************/