Git development
 help / color / mirror / Atom feed
* [PATCH] Old curl does not know about CURLOPT_SSLKEY
@ 2005-09-29 16:19 Johannes Schindelin
  2005-09-30  5:51 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Schindelin @ 2005-09-29 16:19 UTC (permalink / raw)
  To: git


... so try to set it only in later versions.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>

---

 http-fetch.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

d1d3438564c8407b916aa374fbac89a5aa902eb1
diff --git a/http-fetch.c b/http-fetch.c
--- 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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-30  5:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-29 16:19 [PATCH] Old curl does not know about CURLOPT_SSLKEY Johannes Schindelin
2005-09-30  5:51 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox