mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Merge pull request #3467 from cconlon/rc2vs
rc2.c to Visual Studio projects, fix warnings
This commit is contained in:
@ -9378,7 +9378,7 @@ int CheckForAltNames(DecodedCert* dCert, const char* domain, int* checkCN)
|
|||||||
XMEMSET(tmp, 0, sizeof(tmp));
|
XMEMSET(tmp, 0, sizeof(tmp));
|
||||||
XSNPRINTF(tmp, sizeof(tmp), (altName->len <= 4) ? "%u" : "%02X",
|
XSNPRINTF(tmp, sizeof(tmp), (altName->len <= 4) ? "%u" : "%02X",
|
||||||
altName->name[i]);
|
altName->name[i]);
|
||||||
idx += XSTRLEN(tmp);
|
idx += (word32)XSTRLEN(tmp);
|
||||||
XSTRNCAT(name, tmp, (altName->len <= 4) ? 3 : 2);
|
XSTRNCAT(name, tmp, (altName->len <= 4) ? 3 : 2);
|
||||||
if ((idx < WOLFSSL_MAX_IPSTR ) && ((i + 1) < altName->len)) {
|
if ((idx < WOLFSSL_MAX_IPSTR ) && ((i + 1) < altName->len)) {
|
||||||
name[idx++] = (altName->len <= 4) ? '.' : ':';
|
name[idx++] = (altName->len <= 4) ? '.' : ':';
|
||||||
|
@ -41340,12 +41340,12 @@ int wolfSSL_BIO_new_bio_pair(WOLFSSL_BIO **bio1_p, size_t writebuf1,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ret && 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");
|
WOLFSSL_MSG("wolfSSL_BIO_set_write_buf() failure");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ret && writebuf2) {
|
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");
|
WOLFSSL_MSG("wolfSSL_BIO_set_write_buf() failure");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -290,6 +290,10 @@
|
|||||||
RelativePath=".\wolfcrypt\src\random.c"
|
RelativePath=".\wolfcrypt\src\random.c"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\wolfcrypt\src\rc2.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\wolfcrypt\src\ripemd.c"
|
RelativePath=".\wolfcrypt\src\ripemd.c"
|
||||||
>
|
>
|
||||||
|
@ -319,6 +319,10 @@
|
|||||||
RelativePath=".\wolfcrypt\src\random.c"
|
RelativePath=".\wolfcrypt\src\random.c"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\wolfcrypt\src\rc2.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\wolfcrypt\src\ripemd.c"
|
RelativePath=".\wolfcrypt\src\ripemd.c"
|
||||||
>
|
>
|
||||||
|
@ -321,6 +321,7 @@
|
|||||||
<ClCompile Include="wolfcrypt\src\pwdbased.c" />
|
<ClCompile Include="wolfcrypt\src\pwdbased.c" />
|
||||||
<ClCompile Include="wolfcrypt\src\rabbit.c" />
|
<ClCompile Include="wolfcrypt\src\rabbit.c" />
|
||||||
<ClCompile Include="wolfcrypt\src\random.c" />
|
<ClCompile Include="wolfcrypt\src\random.c" />
|
||||||
|
<ClCompile Include="wolfcrypt\src\rc2.c" />
|
||||||
<ClCompile Include="wolfcrypt\src\ripemd.c" />
|
<ClCompile Include="wolfcrypt\src\ripemd.c" />
|
||||||
<ClCompile Include="wolfcrypt\src\rsa.c" />
|
<ClCompile Include="wolfcrypt\src\rsa.c" />
|
||||||
<ClCompile Include="wolfcrypt\src\sha.c" />
|
<ClCompile Include="wolfcrypt\src\sha.c" />
|
||||||
@ -369,4 +370,4 @@
|
|||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
Reference in New Issue
Block a user