mirror of
https://github.com/curl/curl.git
synced 2026-07-08 03:07:16 +03:00
mbedtls: guard TLS 1.3 + session tickets usage inside ifdef
If TLS 1.3 is not supported, the call to `mbedtls_ssl_conf_tls13_enable_signal_new_session_tickets()` fails during compilation: ``` curl-8.18.0/lib/vtls/mbedtls.c: In function 'mbed_connect_step1': curl-8.18.0/lib/vtls/mbedtls.c:809:3: error: implicit declaration of function 'mbedtls_ssl_conf_tls13_enable_signal_new_session_tickets' [-Werror=implicit-function-declaration] mbedtls_ssl_conf_tls13_enable_signal_new_session_tickets(&backend->config, ^ curl-8.18.0/lib/vtls/mbedtls.c:809:3: warning: nested extern declaration of 'mbedtls_ssl_conf_tls13_enable_signal_new_session_tickets' [-Wnested-externs] ``` Protect this call inside the `#ifdef` block by making sure that support for TLS 1.3 is defined. Closes #20789
This commit is contained in:
parent
d557c06b52
commit
3aa63896ae
1 changed files with 1 additions and 0 deletions
|
|
@ -814,6 +814,7 @@ static CURLcode mbed_configure_ssl(struct Curl_cfilter *cf,
|
|||
#endif
|
||||
|
||||
#if defined(MBEDTLS_SSL_SESSION_TICKETS) && \
|
||||
defined(MBEDTLS_SSL_PROTO_TLS1_3) && \
|
||||
MBEDTLS_VERSION_NUMBER >= 0x03060100 && \
|
||||
MBEDTLS_VERSION_NUMBER < 0x04000000
|
||||
/* New in mbedTLS 3.6.1, need to enable, default is now disabled. 4.0.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue