Lines Matching refs:proto_len
2268 size_t proto_len) in Curl_alpn_set_negotiated() argument
2284 if(!proto_len) { in Curl_alpn_set_negotiated()
2291 else if((strlen(connssl->alpn_negotiated) != proto_len) || in Curl_alpn_set_negotiated()
2292 memcmp(connssl->alpn_negotiated, proto, proto_len)) { in Curl_alpn_set_negotiated()
2295 connssl->alpn_negotiated, (int)proto_len, proto); in Curl_alpn_set_negotiated()
2305 if(proto && proto_len) { in Curl_alpn_set_negotiated()
2306 if(memchr(proto, '\0', proto_len)) { in Curl_alpn_set_negotiated()
2312 connssl->alpn_negotiated = malloc(proto_len + 1); in Curl_alpn_set_negotiated()
2315 memcpy(connssl->alpn_negotiated, proto, proto_len); in Curl_alpn_set_negotiated()
2316 connssl->alpn_negotiated[proto_len] = 0; in Curl_alpn_set_negotiated()
2319 if(proto && proto_len) { in Curl_alpn_set_negotiated()
2320 if(proto_len == ALPN_HTTP_1_1_LENGTH && in Curl_alpn_set_negotiated()
2325 else if(proto_len == ALPN_H2_LENGTH && in Curl_alpn_set_negotiated()
2331 else if(proto_len == ALPN_H3_LENGTH && in Curl_alpn_set_negotiated()
2338 failf(data, "unsupported ALPN protocol: '%.*s'", (int)proto_len, proto); in Curl_alpn_set_negotiated()
2346 infof(data, VTLS_INFOF_ALPN_DEFERRED, (int)proto_len, proto); in Curl_alpn_set_negotiated()
2348 infof(data, VTLS_INFOF_ALPN_ACCEPTED, (int)proto_len, proto); in Curl_alpn_set_negotiated()