Building with just bare TLS 1.3 settings

will produce the error that the wolfSSL struct doesn't have extensions.
This commit is contained in:
abrahamsonn
2019-04-26 14:08:20 -06:00
parent bbb72946b7
commit ea797fd98e

View File

@ -4015,7 +4015,8 @@ int DoTls13ClientHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
} }
#endif #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 (TLSX_Find(ssl->extensions, TLSX_PRE_SHARED_KEY) != NULL) {
if (ssl->options.downgrade) { if (ssl->options.downgrade) {
if ((ret = InitHandshakeHashes(ssl)) != 0) if ((ret = InitHandshakeHashes(ssl)) != 0)