]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: fix build error with OpenSSL < 1.0.2
authorGeoreth Zhou <georeth2010@gmail.com>
Tue, 20 Apr 2021 03:11:56 +0000 (11:11 +0800)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 20 Apr 2021 04:08:36 +0000 (00:08 -0400)
Closes https://github.com/curl/curl/pull/6920

lib/vtls/openssl.c

index 88380563f4f4c0030064fcf060ff8ab729c2839a..332f477cad695d94a3ad5abb41decbf1c8d77c2c 100644 (file)
@@ -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