mbedtls: fix building with <3.6.1
No binary (build failed)
—
(log yok)
| @@ -779,7 +779,8 @@ mbed_connect_step1(struct Curl_cfilter *cf, struct Curl_easy *data) | |
| return CURLE_SSL_CONNECT_ERROR; | |
| } | |
| - | #if MBEDTLS_VERSION_NUMBER < 0x04000000 && defined(MBEDTLS_SSL_SESSION_TICKETS) |
| + | #if defined(MBEDTLS_SSL_SESSION_TICKETS) && \ |
| + | MBEDTLS_VERSION_NUMBER >= 0x03060100 && MBEDTLS_VERSION_NUMBER < 0x04000000 |
| /* New in mbedTLS 3.6.1, need to enable, default is now disabled. | |
| 4.0.0 enabled it by default for TLSv1.3. */ | |
| mbedtls_ssl_conf_tls13_enable_signal_new_session_tickets(&backend->config, | |