Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] Old curl does not know about CURLOPT_SSLKEY
author
Johannes Schindelin
<Johannes.Schindelin@gmx.de>
Thu, 29 Sep 2005 16:19:50 +0000
(18:19 +0200)
committer
Junio C Hamano
<junkio@cox.net>
Fri, 30 Sep 2005 05:47:37 +0000
(22:47 -0700)
... 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>
http-fetch.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
60fb5b2
)
diff --git
a/http-fetch.c
b/http-fetch.c
index 33f3949252f2dbf0b724b6cfebde236f7d78d728..0566a9125cd698a79f99a44ab9a64e9bd7c30c7d 100644
(file)
--- 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);