From 40a4015491a2eda1a97d1be9dfdab63f6d032e45 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Fri, 27 Aug 2021 08:28:50 -0600 Subject: [PATCH] add no server macro guard --- src/internal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index d2d424223..8c01ac52d 100644 --- a/src/internal.c +++ b/src/internal.c @@ -6267,8 +6267,10 @@ int InitSSL(WOLFSSL* ssl, WOLFSSL_CTX* ctx, int writeDup) #endif #ifdef WOLFSSL_TLS13 - #ifdef HAVE_SESSION_TICKET + #if defined(HAVE_SESSION_TICKET) && !defined(NO_WOLFSSL_SERVER) ssl->options.maxTicketTls13 = ctx->maxTicketTls13; + #endif + #ifdef HAVE_SESSION_TICKET ssl->options.noTicketTls13 = ctx->noTicketTls13; #endif ssl->options.noPskDheKe = ctx->noPskDheKe;