25 #if !defined(CURL_DISABLE_HTTP) && defined(USE_SPNEGO) 51 struct negotiatedata *neg_ctx;
56 service = data->
set.
str[STRING_PROXY_SERVICE_NAME] ?
57 data->
set.
str[STRING_PROXY_SERVICE_NAME] :
"HTTP";
59 neg_ctx = &data->
state.proxyneg;
67 neg_ctx = &data->
state.negotiate;
78 header += strlen(
"Negotiate");
79 while(*header &&
ISSPACE(*header))
85 if(neg_ctx->context) {
93 result = Curl_auth_decode_spnego_message(data, userp, passwdp, service,
94 host, header, neg_ctx);
97 Curl_auth_spnego_cleanup(neg_ctx);
104 struct negotiatedata *neg_ctx = proxy ? &conn->
data->
state.proxyneg :
111 result = Curl_auth_create_spnego_message(conn->
data, neg_ctx, &base64, &len);
115 userp =
aprintf(
"%sAuthorization: Negotiate %s\r\n", proxy ?
"Proxy-" :
"",
132 void Curl_cleanup_negotiate(
struct Curl_easy *data)
134 Curl_auth_spnego_cleanup(&data->
state.negotiate);
135 Curl_auth_spnego_cleanup(&data->
state.proxyneg);
UNITTEST_START int result
struct proxy_info http_proxy
#define Curl_safefree(ptr)
struct connectdata::dynamically_allocated_data allocptr