From 1a3a730eb95395ccddd52e77fec7e6952da26d70 Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Wed, 28 Aug 2024 10:51:11 -0500 Subject: [PATCH] Fix WOLFSSL_NO_TLS12 build error --- src/ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index bf334bf715..b1583e4e0c 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -3628,7 +3628,7 @@ static int _Rehandshake(WOLFSSL* ssl) ssl->secure_renegotiation->cache_status = SCR_CACHE_NEEDED; -#if !defined(NO_WOLFSSL_SERVER) +#if !defined(NO_WOLFSSL_SERVER) && !defined(WOLFSSL_NO_TLS12) if (ssl->options.side == WOLFSSL_SERVER_END) { ret = SendHelloRequest(ssl); if (ret != 0) { @@ -3636,7 +3636,7 @@ static int _Rehandshake(WOLFSSL* ssl) return WOLFSSL_FATAL_ERROR; } } -#endif /* !NO_WOLFSSL_SERVER */ +#endif /* !NO_WOLFSSL_SERVER && !WOLFSSL_NO_TLS12 */ ret = InitHandshakeHashes(ssl); if (ret != 0) {