Lines Matching defs:pcfg
224 struct proxy_cfg *pcfg, char **req_url)
249 pcfg->url, &secreq->mapped_path[blen],
294 struct proxy_cfg *pcfg)
316 for (j = 0; pcfg->fwd_headers[j]; j++) {
317 if (strcasecmp(secreq->headers[i].name, pcfg->fwd_headers[j]) == 0) {
333 if (pcfg->auth_type == PAT_HEADER) {
335 pcfg->auth.header.name);
337 ret = proxy_http_append_header(tmp_ctx, pcfg->auth.header.name,
338 pcfg->auth.header.value,
361 struct proxy_cfg *pcfg,
378 headers = proxy_http_create_headers(tmp_ctx, secreq, pcfg);
428 ret = tcurl_req_verify_peer(tcurl_req, pcfg->capath, pcfg->cacert,
429 pcfg->verify_peer, pcfg->verify_host);
435 if (pcfg->cert != NULL) {
436 ret = tcurl_req_set_client_cert(tcurl_req, pcfg->cert, pcfg->key);
443 if (pcfg->auth_type == PAT_BASIC_AUTH) {
444 ret = tcurl_req_http_basic_auth(tcurl_req, pcfg->auth.basic.username,
445 pcfg->auth.basic.password);
464 struct proxy_cfg *pcfg;
492 ret = proxy_sec_get_cfg(pctx, state, state->secreq, &state->pcfg);
499 ret = proxy_sec_map_url(state, secreq, state->pcfg, &http_uri);
506 ret = proxy_http_create_request(state, state->secreq, state->pcfg,