From ea797fd98e60359beb846b7e3800a1e13097b44d Mon Sep 17 00:00:00 2001 From: abrahamsonn Date: Fri, 26 Apr 2019 14:08:20 -0600 Subject: [PATCH] Building with just bare TLS 1.3 settings will produce the error that the wolfSSL struct doesn't have extensions. --- src/tls13.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tls13.c b/src/tls13.c index 5f1825997..0a7f21c53 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -4015,7 +4015,8 @@ int DoTls13ClientHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx, } #endif -#if defined(HAVE_SESSION_TICKET) || !defined(NO_PSK) +#if (defined(HAVE_SESSION_TICKET) || !defined(NO_PSK)) && \ + defined(HAVE_TLS_EXTENSIONS) if (TLSX_Find(ssl->extensions, TLSX_PRE_SHARED_KEY) != NULL) { if (ssl->options.downgrade) { if ((ret = InitHandshakeHashes(ssl)) != 0)