curl/lib/vtls
Viktor Szakats 4e051ff550
curlx: limit use of system allocators to the minimum possible
Clone a multibye conversion function into curlx/fopen, and use that
local copy from curlx/fopen functions. Adjust allocators in curlx/fopen
to use curl's in normal builds, and system allocators in TrackMemory
builds to avoid recursion.

This allows to switch curlx/multibyte functions to curl allocators in
all configurations, as they are no longer called by curlx/fopen, and
a recursive call can no longer happen.

After this patch the system allocator is only used in TrackMemory
Windows builds, within curlx `fopen`, `freopen`, `stat` and `open`
functions.

Also:
- test 1, 440, 767: raise allocation limitsto fit the extra allocations
  in Windows Unicode builds.
- replace all uses of `curlx_unicodefree()` macro with `curlx_free()`
  across the codebase.
- curlx/multibyte: delete `curlx_unicodefree()`.
- ldap: join Windows and non-Windows codepaths that became
  identical after moving from `curlx_unicodefree()` to `curlx_free()`.
- vauth: drop a strdup from standard to curl allocator since
  the original allocation is now already done by curl's.
- tool_doswin: drop now superfluous strdup from `FindWin32CACert()`.
- memanalyzer.pm: sync weirdo `calloc` log message with `malloc`'s.

Fixes #19748
Closes #19845
2025-12-05 15:32:59 +01:00
..
apple.c tidy-up: one more round of formatting nits 2025-12-04 19:30:59 +01:00
apple.h apple sectrust: add to features 2025-10-16 10:58:45 +02:00
cipher_suite.c tidy-up: one more round of formatting nits 2025-12-04 19:30:59 +01:00
cipher_suite.h TLS: remove support for Secure Transport and BearSSL 2025-06-11 07:54:19 +02:00
gtls.c tidy-up: miscellaneous 2025-12-04 20:14:11 +01:00
gtls.h lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
hostcheck.c lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
hostcheck.h openssl: some small cleanups 2025-07-18 00:40:26 +02:00
keylog.c lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
keylog.h spelling: 'a' vs 'an' 2025-05-30 11:38:35 +02:00
mbedtls.c mbedtls: sync format across log messages 2025-12-04 22:49:03 +01:00
mbedtls.h lib: include files using known path 2025-04-08 17:00:00 +02:00
mbedtls_threadlock.c lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
mbedtls_threadlock.h lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
openssl.c vtls: do not reach into ASN1_STRING 2025-12-04 16:14:12 +01:00
openssl.h openssl: simplify HAVE_KEYLOG_CALLBACK guard 2025-12-04 22:49:03 +01:00
rustls.c lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
rustls.h lib: include files using known path 2025-04-08 17:00:00 +02:00
schannel.c curlx: limit use of system allocators to the minimum possible 2025-12-05 15:32:59 +01:00
schannel.h lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
schannel_int.h build: drop support for VS2008 (Windows) 2025-11-15 15:56:19 +01:00
schannel_verify.c curlx: limit use of system allocators to the minimum possible 2025-12-05 15:32:59 +01:00
vtls.c lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
vtls.h lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
vtls_int.h lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
vtls_scache.c lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
vtls_scache.h lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
vtls_spack.c lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
vtls_spack.h build: fix build errors/warnings in rare configurations 2025-07-23 22:17:03 +02:00
wolfssl.c vtls: drop interim ECH feature macros (OpenSSL, wolfSSL) 2025-11-30 22:27:25 +01:00
wolfssl.h lib/subdirs: fix formatting nits 2025-11-30 11:01:50 +01:00
x509asn1.c tidy-up: one more round of formatting nits 2025-12-04 19:30:59 +01:00
x509asn1.h build: address some -Weverything warnings, update picky warnings 2025-09-20 10:16:15 +02:00