1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-08 08:44:57 +03:00

Fix several compile warnings on MS VC++ 2008.

This commit is contained in:
Daiyuu Nobori
2019-08-04 10:35:16 +09:00
parent 7dff0dce17
commit bf4667cfce
3 changed files with 15 additions and 15 deletions

View File

@ -5563,7 +5563,7 @@ int SslCertVerifyCallback(int preverify_ok, X509_STORE_CTX *ctx)
if (!preverify_ok)
{
const char *msg = X509_verify_cert_error_string(clientcert->PreverifyErr);
StrCpy(clientcert->PreverifyErrMessage, PREVERIFY_ERR_MESSAGE_SIZE, msg);
StrCpy(clientcert->PreverifyErrMessage, PREVERIFY_ERR_MESSAGE_SIZE, (char *)msg);
Debug("SslCertVerifyCallback preverify error: '%s'\n", msg);
}
else
@ -16532,12 +16532,12 @@ TOKEN_LIST *GetCipherList()
sk = SSL_get_ciphers(ssl);
#endif
for (i = 0; i < sk_SSL_CIPHER_num(sk); i++)
for (i = 0; i < (UINT)sk_SSL_CIPHER_num(sk); i++)
{
const SSL_CIPHER *c = sk_SSL_CIPHER_value(sk, i);
name = SSL_CIPHER_get_name(c);
if (IsEmptyStr(name))
if (IsEmptyStr((char *)name))
{
break;
}
@ -16553,7 +16553,7 @@ TOKEN_LIST *GetCipherList()
ciphers->Token = Malloc(sizeof(char *));
}
ciphers->Token[i] = CopyStr(name);
ciphers->Token[i] = CopyStr((char *)name);
}
sk_SSL_CIPHER_free(sk);