git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Old curl does not know about CURLOPT_SSLKEY

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Sep 29, 2005, 16:19 UTC
Message-ID
<Pine.LNX.4.63.0509291819090.7007@wgmdd8.biozentrum.uni-wuerzburg.de>
... 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);
Next: Junio C Hamano
Message 1 of 2 in “Old curl does not know about CURLOPT_SSLKEY”
  1. Old curl does not know about CURLOPT_SSLKEYJohannes Schindelin, Sep 29, 2005
  2. Junio C HamanoSep 30, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.