mirror of
https://github.com/curl/curl.git
synced 2025-01-24 14:15:18 +08:00
SSL: fix unused parameter warnings
This commit is contained in:
parent
c96d96bc5f
commit
70a69f3718
@ -2753,6 +2753,8 @@ static CURLcode Curl_darwinssl_random(struct Curl_easy *data UNUSED_PARAM,
|
|||||||
size_t i;
|
size_t i;
|
||||||
u_int32_t random_number = 0;
|
u_int32_t random_number = 0;
|
||||||
|
|
||||||
|
(void)data;
|
||||||
|
|
||||||
for(i = 0 ; i < length ; i++) {
|
for(i = 0 ; i < length ; i++) {
|
||||||
if(i % sizeof(u_int32_t) == 0)
|
if(i % sizeof(u_int32_t) == 0)
|
||||||
random_number = arc4random();
|
random_number = arc4random();
|
||||||
|
@ -1028,6 +1028,7 @@ static void Curl_mbedtls_sha256sum(const unsigned char *input,
|
|||||||
unsigned char *sha256sum,
|
unsigned char *sha256sum,
|
||||||
size_t sha256len UNUSED_PARAM)
|
size_t sha256len UNUSED_PARAM)
|
||||||
{
|
{
|
||||||
|
(void)sha256len;
|
||||||
mbedtls_sha256(input, inputlen, sha256sum, 0);
|
mbedtls_sha256(input, inputlen, sha256sum, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -887,6 +887,7 @@ static void Curl_polarssl_sha256sum(const unsigned char *input,
|
|||||||
unsigned char *sha256sum,
|
unsigned char *sha256sum,
|
||||||
size_t sha256len UNUSED_PARAM)
|
size_t sha256len UNUSED_PARAM)
|
||||||
{
|
{
|
||||||
|
(void)sha256len;
|
||||||
sha256(input, inputlen, sha256sum, 0);
|
sha256(input, inputlen, sha256sum, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1655,6 +1655,8 @@ static CURLcode Curl_schannel_random(struct Curl_easy *data UNUSED_PARAM,
|
|||||||
{
|
{
|
||||||
HCRYPTPROV hCryptProv = 0;
|
HCRYPTPROV hCryptProv = 0;
|
||||||
|
|
||||||
|
(void)data;
|
||||||
|
|
||||||
if(!CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
|
if(!CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
|
||||||
CRYPT_VERIFYCONTEXT | CRYPT_SILENT))
|
CRYPT_VERIFYCONTEXT | CRYPT_SILENT))
|
||||||
return CURLE_FAILED_INIT;
|
return CURLE_FAILED_INIT;
|
||||||
|
Loading…
Reference in New Issue
Block a user