Lines Matching defs:conn
62 get_gss_name(struct connectdata *conn, bool proxy, gss_name_t *server)
64 struct negotiatedata *neg_ctx = proxy?&conn->data->state.proxyneg:
65 &conn->data->state.negotiate;
83 token.length = strlen(service) + 1 + strlen(proxy ? conn->proxy.name :
84 conn->host.name) + 1;
88 snprintf(name, sizeof(name), "%s@%s", service, proxy ? conn->proxy.name :
89 conn->host.name);
101 log_gss_error(struct connectdata *conn, OM_uint32 error_status,
127 infof(conn->data, "%s\n", buf);
132 int Curl_input_negotiate(struct connectdata *conn, bool proxy,
135 struct SessionHandle *data = conn->data;
178 (ret = get_gss_name(conn, proxy, &neg_ctx->server_name)))
257 log_gss_error(conn, minor_status, "gss_init_sec_context() failed: ");
272 CURLcode Curl_output_negotiate(struct connectdata *conn, bool proxy)
274 struct negotiatedata *neg_ctx = proxy?&conn->data->state.proxyneg:
275 &conn->data->state.negotiate;
309 infof(conn->data, "Make SPNEGO Initial Token failed\n");
316 infof(conn->data, "Make SPNEGO Initial Token succeeded (NULL token)\n");
324 infof(conn->data, "Make SPNEGO Initial Token succeeded\n");
328 error = Curl_base64_encode(conn->data,
349 Curl_safefree(conn->allocptr.proxyuserpwd);
350 conn->allocptr.proxyuserpwd = userp;
353 Curl_safefree(conn->allocptr.userpwd);
354 conn->allocptr.userpwd = userp;
358 Curl_cleanup_negotiate(conn->data);