mirror of https://github.com/wolfSSL/wolfssl.git
Fix for building TLS v1.3 code on Windows
parent
5235e256c7
commit
fa2db8b22e
|
@ -1622,6 +1622,8 @@ static int TLSX_SNI_Parse(WOLFSSL* ssl, byte* input, word16 length,
|
||||||
switch(type) {
|
switch(type) {
|
||||||
case WOLFSSL_SNI_HOST_NAME: {
|
case WOLFSSL_SNI_HOST_NAME: {
|
||||||
int matchStat;
|
int matchStat;
|
||||||
|
byte matched;
|
||||||
|
|
||||||
#ifdef WOLFSSL_TLS13
|
#ifdef WOLFSSL_TLS13
|
||||||
/* Don't process the second ClientHello SNI extension if there
|
/* Don't process the second ClientHello SNI extension if there
|
||||||
* was problems with the first.
|
* was problems with the first.
|
||||||
|
@ -1629,7 +1631,7 @@ static int TLSX_SNI_Parse(WOLFSSL* ssl, byte* input, word16 length,
|
||||||
if (!cacheOnly && sni->status != 0)
|
if (!cacheOnly && sni->status != 0)
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
byte matched = cacheOnly ||
|
matched = cacheOnly ||
|
||||||
((XSTRLEN(sni->data.host_name) == size) &&
|
((XSTRLEN(sni->data.host_name) == size) &&
|
||||||
(XSTRNCMP(sni->data.host_name,
|
(XSTRNCMP(sni->data.host_name,
|
||||||
(const char*)input + offset, size) == 0));
|
(const char*)input + offset, size) == 0));
|
||||||
|
|
|
@ -6120,6 +6120,7 @@ int DoTls13HandShakeMsgType(WOLFSSL* ssl, byte* input, word32* inOutIdx,
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
word32 inIdx = *inOutIdx;
|
word32 inIdx = *inOutIdx;
|
||||||
|
|
||||||
(void)totalSz;
|
(void)totalSz;
|
||||||
|
|
||||||
WOLFSSL_ENTER("DoTls13HandShakeMsgType");
|
WOLFSSL_ENTER("DoTls13HandShakeMsgType");
|
||||||
|
|
|
@ -319,6 +319,10 @@
|
||||||
RelativePath=".\src\tls.c"
|
RelativePath=".\src\tls.c"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\tls13.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\wolfcrypt\src\wc_encrypt.c"
|
RelativePath=".\wolfcrypt\src\wc_encrypt.c"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue