From 906e5c19ad445d7141f4eec4bf5005aa9441ac36 Mon Sep 17 00:00:00 2001 From: Todd A Ouska Date: Thu, 28 Apr 2011 16:34:42 -0700 Subject: [PATCH] windows build fixes for new stuff --- ctaocrypt/src/pwdbased.c | 2 +- cyassl.vcproj | 762 ++++++++++++++++++++------------------- src/ssl.c | 2 +- 3 files changed, 387 insertions(+), 379 deletions(-) diff --git a/ctaocrypt/src/pwdbased.c b/ctaocrypt/src/pwdbased.c index c2b04d328..1b4cc195c 100644 --- a/ctaocrypt/src/pwdbased.c +++ b/ctaocrypt/src/pwdbased.c @@ -293,7 +293,7 @@ int PKCS12_PBKDF(byte* output, const byte* passwd, int passLen,const byte* salt, if (ret < 0) break; } - currentLen = min(kLen, u); + currentLen = min(kLen, (int)u); XMEMCPY(output, Ai, currentLen); output += currentLen; kLen -= currentLen; diff --git a/cyassl.vcproj b/cyassl.vcproj index 3b9d4671c..4f69508f7 100755 --- a/cyassl.vcproj +++ b/cyassl.vcproj @@ -1,377 +1,385 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ssl.c b/src/ssl.c index 63255d501..cb90a4045 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -679,7 +679,7 @@ int AddCA(SSL_CTX* ctx, buffer der) long consumed = info.consumed; word32 idx = 0; - if ( (sz - consumed) > bufferSz) { + if ( (sz - consumed) > (int)bufferSz) { CYASSL_MSG("Growing Tmp Chain Buffer"); bufferSz = sz - consumed; /* will shrink to actual size */ chainBuffer = (byte*)XMALLOC(bufferSz, ctx->heap,