curl/lib/vauth
Viktor Szakats 2f3fa479dd
build: enable -Wformat-signedness, fix issues found
Adjust code to avoid `-Wformat-signedness` warnings, while making sure
that enums are always cast to a known type when passing them to `printf`
functions, to support compilers and compiler settings where enums are
not default-size signed ints.

- cast integers printed as hex to `unsigned`. (63 times, 20 of them in
  `mbedtls.c`)
- cast misc enums to `int` for printing. (31 times)
- cast `CURL_LOCK_DATA_*` enums to `int`. (4 times)
- cast `CURL_FORMADD_*` enums to `int`. (13 times)
- cast `CURLSHE_*` enums to `int`. (3 times)
- cast `CURLUE_*` enums to `int`. (33 times)
- cast `CURLMSG_*` enums to `int`. (6 times)
- cast `CURLE_*` enums to `int`. (~380 times)
- unit1675: fix mask.
  Follow-up to 7c34365cce #21879

Ref: #18343 (initial attempt)

Closes #20848
2026-06-10 15:14:08 +02:00
..
cleartext.c creds: hold credentials 2026-05-12 16:05:15 +02:00
cram.c creds: hold credentials 2026-05-12 16:05:15 +02:00
digest.c build: enable -Wformat-signedness, fix issues found 2026-06-10 15:14:08 +02:00
digest.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
digest_sspi.c build: enable -Wformat-signedness, fix issues found 2026-06-10 15:14:08 +02:00
gsasl.c gsasl: fix potential double free 2026-05-15 11:49:06 +02:00
krb5_gssapi.c creds: add sasl service name 2026-05-13 14:04:17 +02:00
krb5_sspi.c tidy-up: use curlx_safefree() 2026-05-21 01:31:03 +02:00
ntlm.c tidy-up: prefer "initialize" with a 'z' 2026-05-15 11:49:06 +02:00
ntlm_sspi.c build: enable -Wformat-signedness, fix issues found 2026-06-10 15:14:08 +02:00
oauth2.c creds: hold credentials 2026-05-12 16:05:15 +02:00
spnego_gssapi.c creds: add sasl service name 2026-05-13 14:04:17 +02:00
spnego_sspi.c tidy-up: use curlx_safefree() 2026-05-21 01:31:03 +02:00
vauth.c tidy-up: drop redundant != NULL syntax 2026-06-09 14:37:36 +02:00
vauth.h tidy-up: apply clang-format fixes 2026-05-28 00:05:47 +02:00