Merge pull request #3467 from cconlon/rc2vs

rc2.c to Visual Studio projects, fix warnings
This commit is contained in:
toddouska
2020-11-09 13:52:03 -08:00
committed by GitHub
5 changed files with 13 additions and 4 deletions

View File

@ -9378,7 +9378,7 @@ int CheckForAltNames(DecodedCert* dCert, const char* domain, int* checkCN)
XMEMSET(tmp, 0, sizeof(tmp));
XSNPRINTF(tmp, sizeof(tmp), (altName->len <= 4) ? "%u" : "%02X",
altName->name[i]);
idx += XSTRLEN(tmp);
idx += (word32)XSTRLEN(tmp);
XSTRNCAT(name, tmp, (altName->len <= 4) ? 3 : 2);
if ((idx < WOLFSSL_MAX_IPSTR ) && ((i + 1) < altName->len)) {
name[idx++] = (altName->len <= 4) ? '.' : ':';

View File

@ -41340,12 +41340,12 @@ int wolfSSL_BIO_new_bio_pair(WOLFSSL_BIO **bio1_p, size_t writebuf1,
}
}
if (ret && writebuf1) {
if (!(ret = wolfSSL_BIO_set_write_buf_size(bio1, writebuf1))) {
if (!(ret = wolfSSL_BIO_set_write_buf_size(bio1, (long)writebuf1))) {
WOLFSSL_MSG("wolfSSL_BIO_set_write_buf() failure");
}
}
if (ret && writebuf2) {
if (!(ret = wolfSSL_BIO_set_write_buf_size(bio2, writebuf2))) {
if (!(ret = wolfSSL_BIO_set_write_buf_size(bio2, (long)writebuf2))) {
WOLFSSL_MSG("wolfSSL_BIO_set_write_buf() failure");
}
}

View File

@ -290,6 +290,10 @@
RelativePath=".\wolfcrypt\src\random.c"
>
</File>
<File
RelativePath=".\wolfcrypt\src\rc2.c"
>
</File>
<File
RelativePath=".\wolfcrypt\src\ripemd.c"
>

View File

@ -319,6 +319,10 @@
RelativePath=".\wolfcrypt\src\random.c"
>
</File>
<File
RelativePath=".\wolfcrypt\src\rc2.c"
>
</File>
<File
RelativePath=".\wolfcrypt\src\ripemd.c"
>

View File

@ -321,6 +321,7 @@
<ClCompile Include="wolfcrypt\src\pwdbased.c" />
<ClCompile Include="wolfcrypt\src\rabbit.c" />
<ClCompile Include="wolfcrypt\src\random.c" />
<ClCompile Include="wolfcrypt\src\rc2.c" />
<ClCompile Include="wolfcrypt\src\ripemd.c" />
<ClCompile Include="wolfcrypt\src\rsa.c" />
<ClCompile Include="wolfcrypt\src\sha.c" />