From b5873137387e778af7c6057762a71d83c5768dd1 Mon Sep 17 00:00:00 2001 From: Steven Cooreman Date: Thu, 21 Jan 2021 13:59:17 +0100 Subject: [PATCH] Doesn't make sense to have ECP_NO_FALLBACK when there's no ECP_INTERNAL_ALT. Signed-off-by: Steven Cooreman --- include/mbedtls/check_config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/mbedtls/check_config.h b/include/mbedtls/check_config.h index accf51e321..1014bd83f1 100644 --- a/include/mbedtls/check_config.h +++ b/include/mbedtls/check_config.h @@ -252,6 +252,10 @@ #error "MBEDTLS_ECP_NORMALIZE_MXZ_ALT defined, but not all prerequisites" #endif +#if defined(MBEDTLS_ECP_NO_FALLBACK) && !defined(MBEDTLS_ECP_INTERNAL_ALT) +#error "MBEDTLS_ECP_NO_FALLBACK defined, but no alternative implementation enabled" +#endif + #if defined(MBEDTLS_HAVEGE_C) && !defined(MBEDTLS_TIMING_C) #error "MBEDTLS_HAVEGE_C defined, but not all prerequisites" #endif