Lines Matching refs:remaining
1045 static CURLcode doh_decode_rdata_name(unsigned char **buf, size_t *remaining, in doh_decode_rdata_name() argument
1053 DEBUGASSERT(buf && remaining && dnsname); in doh_decode_rdata_name()
1054 if(!buf || !remaining || !dnsname) in doh_decode_rdata_name()
1056 rem = (int)*remaining; in doh_decode_rdata_name()
1087 *remaining = rem - 1; in doh_decode_rdata_name()
1106 int remaining = (int) len; in doh_decode_rdata_alpn() local
1115 remaining = (int)len; in doh_decode_rdata_alpn()
1117 while(remaining > 0) { in doh_decode_rdata_alpn()
1121 if(remaining != (int)len && Curl_dyn_addn(&dval, ",", 1)) in doh_decode_rdata_alpn()
1123 remaining--; in doh_decode_rdata_alpn()
1124 if(tlen > (size_t)remaining) in doh_decode_rdata_alpn()
1135 remaining -= (int)tlen; in doh_decode_rdata_alpn()
1175 size_t remaining = len; in doh_resp_decode_httpsrr() local
1193 if(remaining <= 2) in doh_resp_decode_httpsrr()
1197 remaining -= (uint16_t)2; in doh_resp_decode_httpsrr()
1198 if(doh_decode_rdata_name(&cp, &remaining, &dnsname) != CURLE_OK) in doh_resp_decode_httpsrr()
1201 while(remaining >= 4) { in doh_resp_decode_httpsrr()
1206 remaining -= 4; in doh_resp_decode_httpsrr()
1237 if(plen > 0 && plen <= remaining) { in doh_resp_decode_httpsrr()
1239 remaining -= plen; in doh_resp_decode_httpsrr()
1242 DEBUGASSERT(!remaining); in doh_resp_decode_httpsrr()