add no server macro guard

pull/4275/head
Jacob Barthelmeh 2021-08-27 08:28:50 -06:00
parent ff9fed08a3
commit 40a4015491
1 changed files with 3 additions and 1 deletions

View File

@ -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;