From 1ef29fcf477cd215d01c249d2162bbc624108e79 Mon Sep 17 00:00:00 2001 From: Mateusz Starzyk Date: Fri, 6 Aug 2021 13:56:54 +0200 Subject: [PATCH] Add MBEDTLS_CHECK_RETURN description to config.h Signed-off-by: Mateusz Starzyk Signed-off-by: Gilles Peskine --- include/mbedtls/config.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/mbedtls/config.h b/include/mbedtls/config.h index e2f460c8ef..b9e57eb196 100644 --- a/include/mbedtls/config.h +++ b/include/mbedtls/config.h @@ -3695,6 +3695,18 @@ */ //#define MBEDTLS_PARAM_FAILED( cond ) assert( cond ) +/** \def MBEDTLS_CHECK_RETURN + * + * This macro appearing at the beginning of the declaration of a function + * indicates that its return value should be checked. + * + * Default implementation resides in platform_util.h. + * You can override default implementation by defining your own. + * Custom implementation can be empty, which will disable checking + * of functions' return values. + */ +//#define MBEDTLS_CHECK_RETURN + /* PSA options */ /** * Use HMAC_DRBG with the specified hash algorithm for HMAC_DRBG for the