From 2c7458677ac18188fc3744e55ba03a332d8e9cac Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 16 Dec 2020 11:41:06 +0000 Subject: [PATCH] Comment out MBEDTLS_X509_REMOVE_INFO in default config.h Fix an issue where `MBEDTLS_X509_REMOVE_INFO` was defined/enabled by default in `include/mbedtls/config.h`. This should also fix the `context-info.sh` test where it ran the default config and expected to see some output from the x509 info functions that were removed. Also updated relevant comments to more accurately explain how the configuration option works. Signed-off-by: Chris Jones --- include/mbedtls/config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mbedtls/config.h b/include/mbedtls/config.h index 6b63886898..0a386db560 100644 --- a/include/mbedtls/config.h +++ b/include/mbedtls/config.h @@ -2146,13 +2146,13 @@ /** * \def MBEDTLS_X509_REMOVE_INFO * - * Enable mbedtls_x509_*_info() and related APIs. + * Disable mbedtls_x509_*_info() and related APIs. * - * Comment to omit mbedtls_x509_*_info(), as well as mbedtls_debug_print_crt() + * Uncomment to omit mbedtls_x509_*_info(), as well as mbedtls_debug_print_crt() * and other functions/constants only used by these functions, thus reducing * the code footprint by several KB. */ -#define MBEDTLS_X509_REMOVE_INFO +//#define MBEDTLS_X509_REMOVE_INFO /** * \def MBEDTLS_X509_RSASSA_PSS_SUPPORT