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:
Stefan Eissing 2025-07-17 11:53:31 +02:00 committed by Daniel Stenberg
parent f63bdea790
commit 21e885eb39
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
16 changed files with 168 additions and 151 deletions

View file

@ -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;
}