[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>
Johannes Schindelin committed
Sep 29, 2005 at 18:19 UTC
7d167feb8bdb52a21a0ef1a4d3b2a8d1f1d413f1
1 file changed
+2
http-fetch.c
+2
@@ -529,9 +529,11 @@ int main(int argc, char **argv)
529
if ((ssl_cert = getenv("GIT_SSL_CERT")) != NULL) {
530
curl_easy_setopt(curl, CURLOPT_SSLCERT, ssl_cert);
531
}
532
+#if LIBCURL_VERSION_NUM >= 0x070902
533
if ((ssl_key = getenv("GIT_SSL_KEY")) != NULL) {
534
curl_easy_setopt(curl, CURLOPT_SSLKEY, ssl_key);
535
}
536
+#endif
537
#if LIBCURL_VERSION_NUM >= 0x070908
538
if ((ssl_capath = getenv("GIT_SSL_CAPATH")) != NULL) {
539
curl_easy_setopt(curl, CURLOPT_CAPATH, ssl_capath);