From d6551eaaa61f0411507c95c95896565418888dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 1 Dec 2025 10:30:09 +0100 Subject: [PATCH] Add comment about internal crypto include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Besides using an internal crypto header, error.h is arguably the wrong place: this file's docstring says it's about "Error to string translation", quite unrelated to the things we use from error_common.h. This is not surprising given the history, but no longer makes sense today. Signed-off-by: Manuel Pégourié-Gonnard --- include/mbedtls/error.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/mbedtls/error.h b/include/mbedtls/error.h index ee3d093c9..21707b1ca 100644 --- a/include/mbedtls/error.h +++ b/include/mbedtls/error.h @@ -11,6 +11,10 @@ #define MBEDTLS_ERROR_H #include "mbedtls/build_info.h" +// XXX: internal crypto include, used for: +// - MBEDTLS_ERROR_ADD +// - MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED +// - possibly others (the above are just the first build errors) #include "mbedtls/private/error_common.h" #include