diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2017-09-06 15:11:55 -0400 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2017-09-06 15:11:55 -0400 |
commit | 70a69f371892ab2e50c9003dd9c129bcc9b8f618 (patch) | |
tree | 4a95bcfa31594ee3fdf85c17b1be49bd9bdeac01 | |
parent | c96d96bc5fd334f90fce04bfe89a9ecbbe8e6094 (diff) |
SSL: fix unused parameter warnings
-rw-r--r-- | lib/vtls/darwinssl.c | 2 | ||||
-rw-r--r-- | lib/vtls/mbedtls.c | 1 | ||||
-rw-r--r-- | lib/vtls/polarssl.c | 1 | ||||
-rw-r--r-- | lib/vtls/schannel.c | 2 |
4 files changed, 6 insertions, 0 deletions
diff --git a/lib/vtls/darwinssl.c b/lib/vtls/darwinssl.c index b4747dcf2..f00a10053 100644 --- a/lib/vtls/darwinssl.c +++ b/lib/vtls/darwinssl.c @@ -2753,6 +2753,8 @@ static CURLcode Curl_darwinssl_random(struct Curl_easy *data UNUSED_PARAM, size_t i; u_int32_t random_number = 0; + (void)data; + for(i = 0 ; i < length ; i++) { if(i % sizeof(u_int32_t) == 0) random_number = arc4random(); diff --git a/lib/vtls/mbedtls.c b/lib/vtls/mbedtls.c index 8a0f05b62..9fc7bd2e1 100644 --- a/lib/vtls/mbedtls.c +++ b/lib/vtls/mbedtls.c @@ -1028,6 +1028,7 @@ static void Curl_mbedtls_sha256sum(const unsigned char *input, unsigned char *sha256sum, size_t sha256len UNUSED_PARAM) { + (void)sha256len; mbedtls_sha256(input, inputlen, sha256sum, 0); } diff --git a/lib/vtls/polarssl.c b/lib/vtls/polarssl.c index 22ff2dd63..0d70027a1 100644 --- a/lib/vtls/polarssl.c +++ b/lib/vtls/polarssl.c @@ -887,6 +887,7 @@ static void Curl_polarssl_sha256sum(const unsigned char *input, unsigned char *sha256sum, size_t sha256len UNUSED_PARAM) { + (void)sha256len; sha256(input, inputlen, sha256sum, 0); } diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c index 64d180dc4..83d443fd1 100644 --- a/lib/vtls/schannel.c +++ b/lib/vtls/schannel.c @@ -1655,6 +1655,8 @@ static CURLcode Curl_schannel_random(struct Curl_easy *data UNUSED_PARAM, { HCRYPTPROV hCryptProv = 0; + (void)data; + if(!CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) return CURLE_FAILED_INIT; |