curl/lib/vauth
Viktor Szakats 34ad78da89
curlx: move Curl_strerror, use in src and tests, ban strerror globally
Also:
- tests/server: replace local `sstrerror()` with `curlx_strerror()`.
- tests/server: show the error code next to the string, where missing.
- curlx: use `curl_msnprintf()` when building for src and tests.
  (units was already using it.)
- lib: drop unused includes found along the way.
- curlx_strerror(): avoid compiler warning (and another similar one):
  ```
  In file included from servers.c:14:
  ../../lib/../../lib/curlx/strerr.c: In function ‘curlx_strerror’:
  ../../lib/../../lib/curlx/strerr.c:328:32: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
    328 |       SNPRINTF(buf, buflen, "%s", msg);
        |                                ^
  ../../lib/../../lib/curlx/strerr.c:47:18: note: ‘snprintf’ output 1 or more bytes (assuming 2) into a destination of size 1
     47 | #define SNPRINTF snprintf
        |                  ^
  ../../lib/../../lib/curlx/strerr.c:328:7: note: in expansion of macro ‘SNPRINTF’
    328 |       SNPRINTF(buf, buflen, "%s", msg);
        |       ^~~~~~~~
  ```

Follow-up to 45438c8d6f #18823

Closes #18840
2025-10-06 09:44:23 +02:00
..
.checksrc curlx: move Curl_strerror, use in src and tests, ban strerror globally 2025-10-06 09:44:23 +02:00
cleartext.c curl_setup: use SIZE_MAX instead of SIZE_T_MAX 2025-08-29 09:45:06 +02:00
cram.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
digest.c tidy-up: whitespace 2025-07-11 13:32:54 +02:00
digest.h lib: add ability to disable auths individually 2023-09-07 17:45:06 +02:00
digest_sspi.c windows: stop passing unused, optional argument for Win9x compatibility 2025-09-20 02:27:07 +02:00
gsasl.c lib: include files using known path 2025-04-08 17:00:00 +02:00
krb5_gssapi.c tidy-up: more whitespace/indent, comments 2025-07-25 11:47:51 +02:00
krb5_sspi.c windows: stop passing unused, optional argument for Win9x compatibility 2025-09-20 02:27:07 +02:00
ntlm.c tidy-up: prefer ifdef/ifndef for single checks 2025-07-27 22:35:17 +02:00
ntlm_sspi.c tidy-up: update MS links, allow long URLs via checksrc 2025-09-20 11:49:23 +02:00
oauth2.c tidy-up: whitespace 2025-07-11 13:32:54 +02:00
spnego_gssapi.c tidy-up: more whitespace/indent, comments 2025-07-25 11:47:51 +02:00
spnego_sspi.c tidy-up: update MS links, allow long URLs via checksrc 2025-09-20 11:49:23 +02:00
vauth.c tidy-up: avoid using the reserved macro namespace 2025-09-20 02:27:06 +02:00
vauth.h tidy-up: prefer ifdef/ifndef for single checks 2025-07-27 22:35:17 +02:00