threads / patch / 1976

patchOld curl does not know about CURLOPT_SSLKEY

Subject: [PATCH] Old curl does not know about CURLOPT_SSLKEY

## tl;dr

2 messages between Sep 29, 2005 and Sep 30, 2005. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Johannes Schindelin· Sep 29, 2005, 16:19 UTC · lore
... 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
Show changes to http-fetch.c +2 −0
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);

← back to recent threads