mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-05 13:44:41 +02:00
fix build when QSH is enabled and TLS 1.3 is enabled
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user