mirror of
https://github.com/curl/curl.git
synced 2026-08-25 03:23:32 +03:00
urldata: remove fields not used depending on used features
Reduced size of dynamically_allocated_data structure. Reduced number of stored values in enum dupstring and enum dupblob. This affects the reduced array placed in the UserDefined structure. Closes #13188
This commit is contained in:
parent
11d27cf341
commit
f46385d36d
14 changed files with 157 additions and 44 deletions
|
|
@ -120,16 +120,29 @@ CURLcode Curl_input_negotiate(struct Curl_easy *data, struct connectdata *conn,
|
|||
CURLcode Curl_output_negotiate(struct Curl_easy *data,
|
||||
struct connectdata *conn, bool proxy)
|
||||
{
|
||||
struct negotiatedata *neg_ctx = proxy ? &conn->proxyneg :
|
||||
&conn->negotiate;
|
||||
struct auth *authp = proxy ? &data->state.authproxy : &data->state.authhost;
|
||||
curlnegotiate *state = proxy ? &conn->proxy_negotiate_state :
|
||||
&conn->http_negotiate_state;
|
||||
struct negotiatedata *neg_ctx;
|
||||
struct auth *authp;
|
||||
curlnegotiate *state;
|
||||
char *base64 = NULL;
|
||||
size_t len = 0;
|
||||
char *userp;
|
||||
CURLcode result;
|
||||
|
||||
if(proxy) {
|
||||
#ifndef CURL_DISABLE_PROXY
|
||||
neg_ctx = &conn->proxyneg;
|
||||
authp = &data->state.authproxy;
|
||||
state = &conn->proxy_negotiate_state;
|
||||
#else
|
||||
return CURLE_NOT_BUILT_IN;
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
neg_ctx = &conn->negotiate;
|
||||
authp = &data->state.authhost;
|
||||
state = &conn->http_negotiate_state;
|
||||
}
|
||||
|
||||
authp->done = FALSE;
|
||||
|
||||
if(*state == GSS_AUTHRECV) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue