From: Johannes Schindelin Date: Thu, 29 Sep 2005 16:19:50 +0000 (+0200) Subject: [PATCH] Old curl does not know about CURLOPT_SSLKEY X-Git-Tag: v0.99.8~29 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7d167feb8bdb52a21a0ef1a4d3b2a8d1f1d413f1;p=git.git [PATCH] Old curl does not know about CURLOPT_SSLKEY ... so try to set it only in later versions. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/http-fetch.c b/http-fetch.c index 33f394925..0566a9125 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -529,9 +529,11 @@ int main(int argc, char **argv) if ((ssl_cert = getenv("GIT_SSL_CERT")) != NULL) { curl_easy_setopt(curl, CURLOPT_SSLCERT, ssl_cert); } +#if LIBCURL_VERSION_NUM >= 0x070902 if ((ssl_key = getenv("GIT_SSL_KEY")) != NULL) { curl_easy_setopt(curl, CURLOPT_SSLKEY, ssl_key); } +#endif #if LIBCURL_VERSION_NUM >= 0x070908 if ((ssl_capath = getenv("GIT_SSL_CAPATH")) != NULL) { curl_easy_setopt(curl, CURLOPT_CAPATH, ssl_capath);