summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoreth Zhou <georeth2010@gmail.com>2021-04-20 11:11:56 +0800
committerJay Satiro <raysatiro@yahoo.com>2021-04-20 00:08:36 -0400
commit6e3f2febcba4e744eb2f78db4905c76e73615c6c (patch)
tree0b0183c8fd962c958bf94b3990d1767acc592937
parentb97718ab191046ad02d552c8b879291561ec8fc4 (diff)
downloadcurl-6e3f2febcba4e744eb2f78db4905c76e73615c6c.tar.gz
openssl: fix build error with OpenSSL < 1.0.2
Closes https://github.com/curl/curl/pull/6920
-rw-r--r--lib/vtls/openssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 88380563f..332f477ca 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -663,7 +663,7 @@ SSL_CTX_use_PrivateKey_blob(SSL_CTX *ctx, const struct curl_blob *blob,
static int
SSL_CTX_use_certificate_chain_blob(SSL_CTX *ctx, const struct curl_blob *blob,
- const char *key_passwd)
+ const char *key_passwd)
{
/* SSL_CTX_add1_chain_cert introduced in OpenSSL 1.0.2 */
#if (OPENSSL_VERSION_NUMBER >= 0x1000200fL) && /* OpenSSL 1.0.2 or later */ \
@@ -725,7 +725,7 @@ SSL_CTX_use_certificate_chain_blob(SSL_CTX *ctx, const struct curl_blob *blob,
return ret;
#else
(void)ctx; /* unused */
- (void)in; /* unused */
+ (void)blob; /* unused */
(void)key_passwd; /* unused */
return 0;
#endif