diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2024-10-23 02:45:50 +0200 |
---|---|---|
committer | Taylor Blau <me@ttaylorr.com> | 2024-10-23 22:16:35 +0200 |
commit | f7c094060c40256c21ee46005b6062a69d71886e (patch) | |
tree | 60c6de1f89d00fac5d94aa472f55eba97cfc1bf9 /http.c | |
parent | git-curl-compat: remove check for curl 7.21.5 (diff) | |
download | git-f7c094060c40256c21ee46005b6062a69d71886e.tar.xz git-f7c094060c40256c21ee46005b6062a69d71886e.zip |
git-curl-compat: remove check for curl 7.25.0
libcurl 7.25.0 was released in March 2012, which is well over ten years
ago, and no major operating system vendor is still providing security
support for it. Debian 8, RHEL 7, and Ubuntu 12.10, all of which are
out of mainstream security support, have all supported a newer version.
Remove the check for this version and use this functionality
unconditionally.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -716,35 +716,11 @@ static int has_proxy_cert_password(void) } #endif -#ifdef GITCURL_HAVE_CURLOPT_TCP_KEEPALIVE static void set_curl_keepalive(CURL *c) { curl_easy_setopt(c, CURLOPT_TCP_KEEPALIVE, 1); } -#else -static int sockopt_callback(void *client, curl_socket_t fd, curlsocktype type) -{ - int ka = 1; - int rc; - socklen_t len = (socklen_t)sizeof(ka); - - if (type != CURLSOCKTYPE_IPCXN) - return 0; - - rc = setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, (void *)&ka, len); - if (rc < 0) - warning_errno("unable to set SO_KEEPALIVE on socket"); - - return CURL_SOCKOPT_OK; -} - -static void set_curl_keepalive(CURL *c) -{ - curl_easy_setopt(c, CURLOPT_SOCKOPTFUNCTION, sockopt_callback); -} -#endif - /* Return 1 if redactions have been made, 0 otherwise. */ static int redact_sensitive_header(struct strbuf *header, size_t offset) { |