curl/lib/vtls
Viktor Szakats cbf261e2de
rustls: apply memory function overrides, fixing an ECH buffer free
Fixing:

- a raw `free()` in ECH code that's malloced in lib code, causing
  an invalid free, also reported by valgrind (in non-unity builds).

  And in unity builds adjusted to behave like non-unity via #17827:
  Ref: https://github.com/curl/curl/actions/runs/16093372427/job/45421778472?pr=17827#step:39:3321

- a local pair of `malloc()`/`free()` to use curl's memory allocators,
  and participate in memory tracking when enabled.

Cherry-picked from #17827
Closes #17830
2025-07-06 20:08:58 +02:00
..
.checksrc checksrc: reduce exceptions, apply again to curlx 2025-06-27 17:33:35 +02:00
cipher_suite.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
cipher_suite.h TLS: remove support for Secure Transport and BearSSL 2025-06-11 07:54:19 +02:00
gtls.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
gtls.h curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
hostcheck.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
hostcheck.h code: language cleanup in comments 2024-07-01 22:58:55 +02:00
keylog.c urlapi: use uppercase hex encoding 2025-06-25 11:44:13 +02:00
keylog.h spelling: 'a' vs 'an' 2025-05-30 11:38:35 +02:00
mbedtls.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
mbedtls.h lib: include files using known path 2025-04-08 17:00:00 +02:00
mbedtls_threadlock.c lib: include files using known path 2025-04-08 17:00:00 +02:00
mbedtls_threadlock.h lib: include files using known path 2025-04-08 17:00:00 +02:00
openssl.c openssl: fix pkcs11 provider available check 2025-07-04 08:28:46 +02:00
openssl.h lib: include files using known path 2025-04-08 17:00:00 +02:00
rustls.c rustls: apply memory function overrides, fixing an ECH buffer free 2025-07-06 20:08:58 +02:00
rustls.h lib: include files using known path 2025-04-08 17:00:00 +02:00
schannel.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
schannel.h lib: include files using known path 2025-04-08 17:00:00 +02:00
schannel_int.h lib: use BIT() instead of bool in structs more 2025-04-22 08:01:08 +02:00
schannel_verify.c tidy-up: two comments 2025-06-15 13:32:24 +02:00
vtls.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
vtls.h tls: remove Curl_ssl false_start 2025-06-12 08:29:15 +02:00
vtls_int.h vtls: change send/recv signatures of tls backends 2025-06-21 10:34:02 +02:00
vtls_scache.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
vtls_scache.h lib: replace scache no-op macros with #ifdef 2025-06-27 17:33:34 +02:00
vtls_spack.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
vtls_spack.h lib: include files using known path 2025-04-08 17:00:00 +02:00
wolfssl.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
wolfssl.h pytest: add pinnedpubkey test cases 2025-05-21 22:45:42 +02:00
x509asn1.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
x509asn1.h TLS: remove support for Secure Transport and BearSSL 2025-06-11 07:54:19 +02:00