Fix for building TLS v1.3 code on Windows

pull/1282/head
Sean Parkinson 2017-12-20 10:32:33 +10:00
parent 5235e256c7
commit fa2db8b22e
3 changed files with 8 additions and 1 deletions

View File

@ -1622,6 +1622,8 @@ static int TLSX_SNI_Parse(WOLFSSL* ssl, byte* input, word16 length,
switch(type) {
case WOLFSSL_SNI_HOST_NAME: {
int matchStat;
byte matched;
#ifdef WOLFSSL_TLS13
/* Don't process the second ClientHello SNI extension if there
* 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)
break;
#endif
byte matched = cacheOnly ||
matched = cacheOnly ||
((XSTRLEN(sni->data.host_name) == size) &&
(XSTRNCMP(sni->data.host_name,
(const char*)input + offset, size) == 0));

View File

@ -6120,6 +6120,7 @@ int DoTls13HandShakeMsgType(WOLFSSL* ssl, byte* input, word32* inOutIdx,
{
int ret = 0;
word32 inIdx = *inOutIdx;
(void)totalSz;
WOLFSSL_ENTER("DoTls13HandShakeMsgType");

View File

@ -319,6 +319,10 @@
RelativePath=".\src\tls.c"
>
</File>
<File
RelativePath=".\src\tls13.c"
>
</File>
<File
RelativePath=".\wolfcrypt\src\wc_encrypt.c"
>