mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:23:31 +03:00
version: add "ECH" as a feature
If available
Follow-up to a362962b7
Closes #13378
This commit is contained in:
parent
a1ecd0ba6b
commit
5e3fd347c5
6 changed files with 27 additions and 0 deletions
|
|
@ -417,6 +417,14 @@ static int https_proxy_present(curl_version_info_data *info)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(USE_SSL) && defined(USE_ECH)
|
||||
static int ech_present(curl_version_info_data *info)
|
||||
{
|
||||
(void) info;
|
||||
return Curl_ssl_supports(NULL, SSLSUPP_ECH);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Features table.
|
||||
*
|
||||
|
|
@ -445,6 +453,9 @@ static const struct feat features_table[] = {
|
|||
#ifdef DEBUGBUILD
|
||||
FEATURE("Debug", NULL, CURL_VERSION_DEBUG),
|
||||
#endif
|
||||
#if defined(USE_SSL) && defined(USE_ECH)
|
||||
FEATURE("ECH", ech_present, 0),
|
||||
#endif
|
||||
#ifdef USE_GSASL
|
||||
FEATURE("gsasl", NULL, CURL_VERSION_GSASL),
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -5269,6 +5269,9 @@ const struct Curl_ssl Curl_ssl_openssl = {
|
|||
SSLSUPP_SSL_CTX |
|
||||
#ifdef HAVE_SSL_CTX_SET_CIPHERSUITES
|
||||
SSLSUPP_TLS13_CIPHERSUITES |
|
||||
#endif
|
||||
#ifdef USE_ECH
|
||||
SSLSUPP_ECH |
|
||||
#endif
|
||||
SSLSUPP_HTTPS_PROXY,
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ struct Curl_ssl_session;
|
|||
#define SSLSUPP_HTTPS_PROXY (1<<4) /* supports access via HTTPS proxies */
|
||||
#define SSLSUPP_TLS13_CIPHERSUITES (1<<5) /* supports TLS 1.3 ciphersuites */
|
||||
#define SSLSUPP_CAINFO_BLOB (1<<6)
|
||||
#define SSLSUPP_ECH (1<<7)
|
||||
|
||||
#define ALPN_ACCEPTED "ALPN: server accepted "
|
||||
|
||||
|
|
|
|||
|
|
@ -1504,6 +1504,9 @@ const struct Curl_ssl Curl_ssl_wolfssl = {
|
|||
#endif
|
||||
SSLSUPP_CA_PATH |
|
||||
SSLSUPP_CAINFO_BLOB |
|
||||
#ifdef USE_ECH
|
||||
SSLSUPP_ECH |
|
||||
#endif
|
||||
SSLSUPP_SSL_CTX,
|
||||
|
||||
sizeof(struct wolfssl_ssl_backend_data),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue