From f666a7d4b74a2bc2f40d2cc27e2888f4963930b7 Mon Sep 17 00:00:00 2001 From: Marco Oliverio Date: Tue, 21 Feb 2023 09:06:48 +0000 Subject: [PATCH] internal.c: fix fall_through compilation issues src/internal.c: In function 'SendCertificateVerify': ./wolfssl/wolfcrypt/types.h:345:40: error: attribute 'fallthrough' not preceding a case label or default label [-Werror] 345 | #define FALL_THROUGH ; __attribute__ ((fallthrough)) In file included from ./wolfssl/internal.h:27, from src/internal.c:92: src/internal.c: In function 'SendCertificateVerify': ./wolfssl/wolfcrypt/types.h:345:40: error: attribute 'fallthrough' not preceding a case label or default label [-Werror] 345 | #define FALL_THROUGH ; __attribute__ ((fallthrough)) --- src/internal.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/internal.c b/src/internal.c index 731495eb3..9b9633f18 100644 --- a/src/internal.c +++ b/src/internal.c @@ -30290,7 +30290,7 @@ int SendCertificateVerify(WOLFSSL* ssl) goto exit_scv; } } - #if defined(HAVE_CURVE25519) || defined(HAVE_CURVE448) + #if defined(HAVE_ED25519) || defined(HAVE_ED448) FALL_THROUGH; #endif #endif /* WOLFSSL_CHECK_SIG_FAULTS */ @@ -32381,8 +32381,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx, goto exit_sske; } } - #if defined(HAVE_CURVE25519) || \ - defined(HAVE_CURVE448) + #if defined(HAVE_E25519) || defined(HAVE_ED448) FALL_THROUGH; #endif #endif /* WOLFSSL_CHECK_SIG_FAULTS */