Lines Matching refs:ctx
171 struct cf_proxy_ctx *ctx = cf->ctx; in http_proxy_cf_connect() local
186 if(!ctx->cf_protocol) { in http_proxy_cf_connect()
220 ctx->cf_protocol = cf_protocol; in http_proxy_cf_connect()
230 DEBUGASSERT(ctx->cf_protocol); in http_proxy_cf_connect()
262 struct cf_proxy_ctx *ctx = cf->ctx; in http_proxy_cf_destroy() local
266 free(ctx); in http_proxy_cf_destroy()
272 struct cf_proxy_ctx *ctx = cf->ctx; in http_proxy_cf_close() local
276 if(ctx->cf_protocol) { in http_proxy_cf_close()
281 if(f == ctx->cf_protocol) { in http_proxy_cf_close()
283 Curl_conn_cf_discard_sub(cf, ctx->cf_protocol, data, FALSE); in http_proxy_cf_close()
287 ctx->cf_protocol = NULL; in http_proxy_cf_close()
317 struct cf_proxy_ctx *ctx = NULL; in Curl_cf_http_proxy_insert_after() local
321 ctx = calloc(1, sizeof(*ctx)); in Curl_cf_http_proxy_insert_after()
322 if(!ctx) { in Curl_cf_http_proxy_insert_after()
326 result = Curl_cf_create(&cf, &Curl_cft_http_proxy, ctx); in Curl_cf_http_proxy_insert_after()
329 ctx = NULL; in Curl_cf_http_proxy_insert_after()
333 free(ctx); in Curl_cf_http_proxy_insert_after()