mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:43:33 +03:00
urldata: remove unused struct fields, made more conditional
- source_quote, source_prequote and source_postquote have not been used since
5e0d9aea3; September 2006
- make several fields conditional on proxy support
- make three quote struct fields conditional on FTP || SSH
- make 'mime_options' depend on MIME
- make trailer_* fields depend on HTTP
- change 'gssapi_delegation' from long to unsigned char
- make 'localportrange' unsigned short instead of int
- conn->trailer now depends on HTTP
Closes #10147
This commit is contained in:
parent
f4883ba966
commit
db07301fbb
3 changed files with 51 additions and 49 deletions
|
|
@ -532,11 +532,11 @@ CURLcode Curl_init_userdefined(struct Curl_easy *data)
|
|||
/* Timeout every 24 hours by default */
|
||||
set->general_ssl.ca_cache_timeout = 24 * 60 * 60;
|
||||
|
||||
set->proxyport = 0;
|
||||
set->proxytype = CURLPROXY_HTTP; /* defaults to HTTP proxy */
|
||||
set->httpauth = CURLAUTH_BASIC; /* defaults to basic */
|
||||
|
||||
#ifndef CURL_DISABLE_PROXY
|
||||
set->proxyport = 0;
|
||||
set->proxytype = CURLPROXY_HTTP; /* defaults to HTTP proxy */
|
||||
set->proxyauth = CURLAUTH_BASIC; /* defaults to basic */
|
||||
/* SOCKS5 proxy auth defaults to username/password + GSS-API */
|
||||
set->socks5auth = CURLAUTH_BASIC | CURLAUTH_GSSAPI;
|
||||
|
|
@ -780,7 +780,9 @@ static void conn_free(struct Curl_easy *data, struct connectdata *conn)
|
|||
Curl_safefree(conn->sasl_authzid);
|
||||
Curl_safefree(conn->options);
|
||||
Curl_safefree(conn->oauth_bearer);
|
||||
#ifndef CURL_DISABLE_HTTP
|
||||
Curl_dyn_free(&conn->trailer);
|
||||
#endif
|
||||
Curl_safefree(conn->host.rawalloc); /* host name buffer */
|
||||
Curl_safefree(conn->conn_to_host.rawalloc); /* host name buffer */
|
||||
Curl_safefree(conn->hostname_resolve);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue