From cfc66dab4706b5c32276e4cda03ac0906699a822 Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 11 Jan 2019 21:16:13 -0800 Subject: [PATCH] Fix compiler complaints when using Curve25519. --- src/internal.c | 2 +- tests/api.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index bc9c6a255..002adc81a 100644 --- a/src/internal.c +++ b/src/internal.c @@ -18153,8 +18153,8 @@ static int DoServerKeyExchange(WOLFSSL* ssl, const byte* input, args->idx += length; ssl->peerEccKeyPresent = 1; - break; #endif + break; } #endif /* HAVE_ECC || HAVE_CURVE25519 */ #if !defined(NO_DH) && !defined(NO_PSK) diff --git a/tests/api.c b/tests/api.c index a41c206b9..1731b589e 100644 --- a/tests/api.c +++ b/tests/api.c @@ -21427,6 +21427,10 @@ static void test_CheckCertSignature(void) #endif #endif + (void)fp; + (void)cert; + (void)certSz; + wolfSSL_CertManagerFree(cm); #endif }