From 78302e263c61cef7109e39316a4c10fa098573b8 Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Tue, 11 Mar 2025 15:55:46 +0000 Subject: [PATCH] Add MBEDTLS_CHECK_RETURN_CRITICAL annotation Ensure that the compiler will warn us if we do not check the return of calc_verify in future. Signed-off-by: David Horstmann --- include/mbedtls/ssl_internal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mbedtls/ssl_internal.h b/include/mbedtls/ssl_internal.h index 21f11ed971..17bb631b59 100644 --- a/include/mbedtls/ssl_internal.h +++ b/include/mbedtls/ssl_internal.h @@ -467,6 +467,7 @@ struct mbedtls_ssl_handshake_params { void (*update_checksum)(mbedtls_ssl_context *, const unsigned char *, size_t); void (*calc_verify)(const mbedtls_ssl_context *, unsigned char *, size_t *); + MBEDTLS_CHECK_RETURN_CRITICAL int (*calc_finished)(mbedtls_ssl_context *, unsigned char *, int); mbedtls_ssl_tls_prf_cb *tls_prf;