Lines Matching refs:spec
2207 const struct alpn_spec *spec) in Curl_alpn_to_proto_buf() argument
2214 for(i = 0; spec && i < spec->count; ++i) { in Curl_alpn_to_proto_buf()
2215 len = strlen(spec->entries[i]); in Curl_alpn_to_proto_buf()
2222 memcpy(buf->data + off, spec->entries[i], blen); in Curl_alpn_to_proto_buf()
2230 const struct alpn_spec *spec) in Curl_alpn_to_proto_str() argument
2236 for(i = 0; spec && i < spec->count; ++i) { in Curl_alpn_to_proto_str()
2237 len = strlen(spec->entries[i]); in Curl_alpn_to_proto_str()
2244 memcpy(buf->data + off, spec->entries[i], len); in Curl_alpn_to_proto_str()
2252 bool Curl_alpn_contains_proto(const struct alpn_spec *spec, in Curl_alpn_contains_proto() argument
2256 for(i = 0; spec && plen && i < spec->count; ++i) { in Curl_alpn_contains_proto()
2257 size_t slen = strlen(spec->entries[i]); in Curl_alpn_contains_proto()
2258 if((slen == plen) && !memcmp(proto, spec->entries[i], plen)) in Curl_alpn_contains_proto()