curl-curl/lib/vtls
Viktor Szakats 8afb623bdd
windows: drop redundant curl_wcsdup_callback callback
This callback was permanently mapped to libcurl's internal
`Curl_wcsdup()`, which always uses the customizable malloc for
allocation, thus making a custom mapping redundant anyway.

To simplify, drop the callback and map `_tcsdup()` in Unicode mode
directly to `Curl_wcsdup()`.

Also fixes:
- `curl_global_init()` which, before this patch, (re)initialized its
  mapping to `_wcsdup()`, returning buffers potentially incompatible
  with a custom allocator.
  Bug: https://github.com/curl/curl/pull/17840#issuecomment-3044361245
  Bug: https://github.com/curl/curl/pull/7540#issuecomment-2380995349
  Co-reported-by: Luca Kellermann

Follow-up to 76e047fc27 #7540
Assisted-by: Jay Satiro

Closes #17843
2025-07-08 13:33:38 +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_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
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
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_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
schannel.c windows: drop redundant curl_wcsdup_callback callback 2025-07-08 13:33:38 +02:00
schannel.h lib: include files using known path 2025-04-08 17:00:00 +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
vtls.c quic: implement CURLINFO_TLS_SSL_PTR 2025-07-06 20:29:54 +02:00
vtls.h quic: implement CURLINFO_TLS_SSL_PTR 2025-07-06 20:29:54 +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