From 096db7577f0452cff1e1bd6c9559aca7f4b069d6 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Tue, 31 Aug 2021 12:34:52 -0400 Subject: [PATCH] Make jenkins happy. \n\nI feel like I should put the guard around the whole function but then other things break. --- src/tls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tls.c b/src/tls.c index 55b09fa50..99976612f 100644 --- a/src/tls.c +++ b/src/tls.c @@ -4721,9 +4721,11 @@ int TLSX_UseSupportedCurve(TLSX** extensions, word16 name, void* heap) return BAD_FUNC_ARG; } +#ifdef WOLFSSL_TLS13 if (! TLSX_KeyShare_IsSupported(name)) { return BAD_FUNC_ARG; } +#endif extension = TLSX_Find(*extensions, TLSX_SUPPORTED_GROUPS);