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) { 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));

View File

@ -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");

View File

@ -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"
> >