Lines Matching refs:dohp
226 struct doh_probes *dohp = data->req.doh; in doh_done() local
228 dohp->pending--; in doh_done()
229 infof(doh, "a DoH request is completed, %u to go", dohp->pending); in doh_done()
233 if(!dohp->pending) { in doh_done()
410 struct doh_probes *dohp; in Curl_doh() local
427 dohp = data->req.doh = calloc(1, sizeof(struct doh_probes)); in Curl_doh()
428 if(!dohp) in Curl_doh()
432 dohp->probe[i].easy_mid = -1; in Curl_doh()
436 dohp->host = hostname; in Curl_doh()
437 dohp->port = port; in Curl_doh()
438 dohp->req_hds = in Curl_doh()
441 if(!dohp->req_hds) in Curl_doh()
445 result = doh_run_probe(data, &dohp->probe[DOH_SLOT_IPV4], in Curl_doh()
447 data->multi, dohp->req_hds); in Curl_doh()
450 dohp->pending++; in Curl_doh()
455 result = doh_run_probe(data, &dohp->probe[DOH_SLOT_IPV6], in Curl_doh()
457 data->multi, dohp->req_hds); in Curl_doh()
460 dohp->pending++; in Curl_doh()
484 result = doh_run_probe(data, &dohp->probe[DOH_SLOT_HTTPS_RR], in Curl_doh()
486 data->multi, dohp->req_hds); in Curl_doh()
490 dohp->pending++; in Curl_doh()
1298 struct doh_probes *dohp = data->req.doh; in Curl_doh_is_resolved() local
1300 if(!dohp) in Curl_doh_is_resolved()
1303 if(dohp->probe[DOH_SLOT_IPV4].easy_mid < 0 && in Curl_doh_is_resolved()
1304 dohp->probe[DOH_SLOT_IPV6].easy_mid < 0) { in Curl_doh_is_resolved()
1309 else if(!dohp->pending) { in Curl_doh_is_resolved()
1320 struct doh_probe *p = &dohp->probe[slot]; in Curl_doh_is_resolved()
1330 doh_type2name(p->dnstype), dohp->host); in Curl_doh_is_resolved()
1343 infof(data, "[DoH] hostname: %s", dohp->host); in Curl_doh_is_resolved()
1347 result = doh2ai(&de, dohp->host, dohp->port, &ai); in Curl_doh_is_resolved()
1357 dns = Curl_cache_addr(data, ai, dohp->host, 0, dohp->port, FALSE); in Curl_doh_is_resolved()