diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2005-09-29 18:19:50 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-29 22:47:37 -0700 |
commit | 7d167feb8bdb52a21a0ef1a4d3b2a8d1f1d413f1 (patch) | |
tree | d2051bd1c4df1949ebe1136378375cdd252bbc7f /http-fetch.c | |
parent | 60fb5b2c4d9e26204f480f8a18ae1ff0051a6440 (diff) | |
download | git-7d167feb8bdb52a21a0ef1a4d3b2a8d1f1d413f1.tar.gz |
[PATCH] Old curl does not know about CURLOPT_SSLKEY
... so try to set it only in later versions.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'http-fetch.c')
-rw-r--r-- | http-fetch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/http-fetch.c b/http-fetch.c index 33f3949252..0566a9125c 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); |