fix build when QSH is enabled and TLS 1.3 is enabled

This commit is contained in:
Jacob Barthelmeh
2018-12-28 11:57:13 -07:00
parent 66442c4bd5
commit a1459f6fec

View File

@@ -2566,10 +2566,6 @@ int SendTls13ClientHello(WOLFSSL* ssl)
(ret = TLSX_EarlyData_Use(ssl, 0)) < 0) { (ret = TLSX_EarlyData_Use(ssl, 0)) < 0) {
return ret; return ret;
} }
#endif
#ifdef HAVE_QSH
if (QSH_Init(ssl) != 0)
return MEMORY_E;
#endif #endif
/* Include length of TLS extensions. */ /* Include length of TLS extensions. */
ret = TLSX_GetRequestSize(ssl, client_hello, &length); ret = TLSX_GetRequestSize(ssl, client_hello, &length);
@@ -3889,10 +3885,6 @@ int DoTls13ClientHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
if ((i - begin) + totalExtSz > helloSz) if ((i - begin) + totalExtSz > helloSz)
return BUFFER_ERROR; return BUFFER_ERROR;
#ifdef HAVE_QSH
QSH_Init(ssl);
#endif
/* Auto populate extensions supported unless user defined. */ /* Auto populate extensions supported unless user defined. */
if ((ret = TLSX_PopulateExtensions(ssl, 1)) != 0) if ((ret = TLSX_PopulateExtensions(ssl, 1)) != 0)
return ret; return ret;