]> git.ipfire.org Git - thirdparty/curl.git/commit
mbedtls: check for feature macros instead of version
authorViktor Szakats <commit@vsz.me>
Wed, 13 Aug 2025 08:20:10 +0000 (10:20 +0200)
committerViktor Szakats <commit@vsz.me>
Thu, 14 Aug 2025 10:25:14 +0000 (12:25 +0200)
commitd63e40f8e6298efaabae57c714ef8df57c54474d
tree8d407a9dd5adc1d0f195facc135dad11f8969b0e
parentd10880eac83930c320a349381b22fa85f984cea1
mbedtls: check for feature macros instead of version

Drop three interim macros and mbedTLS version checks in favor of feature
macros defined by mbedTLS itself.

These mbedTLS features require mbedTLS 3.6.0/3.6.1 for production.
Earlier versions may have partial/experimental support for them,
disabled by default and (AFAICS) without documented build options
to enable them.

One feature guard already used the native macro instead of the interim
one before this patch. (`MBEDTLS_SSL_SESSION_TICKETS`)

Ref: https://github.com/curl/curl/pull/18254#issuecomment-3182668817

Closes #18271
lib/vtls/mbedtls.c