[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 164/256: SSL: fix unused parameter warnings
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 164/256: SSL: fix unused parameter warnings |
Date: |
Fri, 06 Oct 2017 19:44:15 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 70a69f371892ab2e50c9003dd9c129bcc9b8f618
Author: Jay Satiro <address@hidden>
AuthorDate: Wed Sep 6 15:11:55 2017 -0400
SSL: fix unused parameter warnings
---
lib/vtls/darwinssl.c | 2 ++
lib/vtls/mbedtls.c | 1 +
lib/vtls/polarssl.c | 1 +
lib/vtls/schannel.c | 2 ++
4 files changed, 6 insertions(+)
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;
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 231/256: curl.h: include <sys/select.h> on cygwin too, (continued)
- [GNUnet-SVN] [gnurl] 231/256: curl.h: include <sys/select.h> on cygwin too, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 215/256: mime: rephrase the multipart output state machine (#1898) ..., gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 161/256: vtls: select ssl backend case-insensitive (follow-up), gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 174/256: form API: add new test 650., gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 223/256: ntlm: use strict order for SSL backend #if branches, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 178/256: rtsp: do not call fwrite() with NULL pointer FILE *, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 169/256: OpenSSL: fix erroneous SSL backend encapsulation, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 80/256: vtls: prepare the SSL backends for encapsulated private data, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 222/256: symbols-in-versions: add CURLSSLSET_NO_BACKENDS, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 248/256: examples: bring back curl_formadd-using examples, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 164/256: SSL: fix unused parameter warnings,
gnunet <=
- [GNUnet-SVN] [gnurl] 240/256: test650: Use variable replacement to set the host address and port, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 229/256: tests: adjust .gitignore for new tests, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 147/256: http-proxy: treat all 2xx as CONNECT success, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 201/256: openssl: add missing includes, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 126/256: mime: new MIME API., gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 185/256: code style: use spaces around pluses, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 256/256: Merge tag 'curl-7_56_0', gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 183/256: code style: use spaces around equals signs, gnunet, 2017/10/06