Skip to content

Commit 603cf3e

Browse files
bk2204ttaylorr
authored andcommitted
git-curl-compat: remove check for curl 7.56.0
libcurl 7.56.0 was released in September 2017, which is over seven years ago, and no major operating system vendor is still providing security support for it. Debian 10, which is out of mainstream security support, has supported a newer version, and Ubuntu 20.04 and RHEL 8, which are still in support, also have a newer version. Remove the check for this version and use this functionality unconditionally. Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Taylor Blau <[email protected]>
1 parent d2f078c commit 603cf3e

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

git-curl-compat.h

-8
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@
2828
* introduced, oldest first, in the official version of cURL library.
2929
*/
3030

31-
/**
32-
* CURLSSLSET_{NO_BACKENDS,OK,TOO_LATE,UNKNOWN_BACKEND} were added in
33-
* 7.56.0, released in September 2017.
34-
*/
35-
#if LIBCURL_VERSION_NUM >= 0x073800
36-
#define GIT_CURL_HAVE_CURLSSLSET_NO_BACKENDS
37-
#endif
38-
3931
/**
4032
* Versions before curl 7.66.0 (September 2019) required manually setting the
4133
* transfer-encoding for a streaming POST; after that this is handled

http.c

-2
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,6 @@ void http_init(struct remote *remote, const char *url, int proactive_auth)
12751275
free(normalized_url);
12761276
string_list_clear(&config.vars, 1);
12771277

1278-
#ifdef GIT_CURL_HAVE_CURLSSLSET_NO_BACKENDS
12791278
if (http_ssl_backend) {
12801279
const curl_ssl_backend **backends;
12811280
struct strbuf buf = STRBUF_INIT;
@@ -1300,7 +1299,6 @@ void http_init(struct remote *remote, const char *url, int proactive_auth)
13001299
break; /* Okay! */
13011300
}
13021301
}
1303-
#endif
13041302

13051303
if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK)
13061304
die("curl_global_init failed");

0 commit comments

Comments
 (0)