mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:51:53 +03:00
alpn: query filter
Add a connection filter query to obtained the negotiated ALPN protocol to check in setup/protocols how the connection needs to behave. Remove the members `alpn` and `proxy_alpn` from `connectdata`. Closes #17947
This commit is contained in:
parent
f63bdea790
commit
21e885eb39
16 changed files with 168 additions and 151 deletions
|
|
@ -1534,6 +1534,12 @@ static CURLcode cf_h2_proxy_query(struct Curl_cfilter *cf,
|
|||
}
|
||||
break;
|
||||
}
|
||||
case CF_QUERY_ALPN_NEGOTIATED: {
|
||||
const char **palpn = pres2;
|
||||
DEBUGASSERT(palpn);
|
||||
*palpn = NULL;
|
||||
return CURLE_OK;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue