curl-curl/lib/vauth
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
cleartext.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
cram.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
digest_sspi.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
digest.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
digest.h lib: add ability to disable auths individually 2023-09-07 17:45:06 +02:00
gsasl.c lib: include files using known path 2025-04-08 17:00:00 +02:00
krb5_gssapi.c tests: move GSS-API dynamic stub into debug-mode libcurl 2025-07-01 00:17:15 +02:00
krb5_sspi.c lib: move multibyte.[ch] to curlx/ 2025-05-08 10:19:19 +02:00
ntlm_sspi.c lib: move multibyte.[ch] to curlx/ 2025-05-08 10:19:19 +02:00
ntlm.c lib: move multibyte.[ch] to curlx/ 2025-05-08 10:19:19 +02:00
oauth2.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
spnego_gssapi.c tests: move GSS-API dynamic stub into debug-mode libcurl 2025-07-01 00:17:15 +02:00
spnego_sspi.c lib: move multibyte.[ch] to curlx/ 2025-05-08 10:19:19 +02:00
vauth.c windows: drop redundant curl_wcsdup_callback callback 2025-07-08 13:33:38 +02:00
vauth.h digest: fix build with disabled digest auth 2025-06-15 12:07:22 +02:00