curl/lib/vtls
Viktor Szakats 5fa5cb3825
build: fix -Wunused-macros warnings, and related tidy-ups
- fix internal macro `AN_APPLE_OS` reused between sources without
  resetting it. It may potentially have left the system sha256
  function unused.
- fix to define `WOLFSSL_OPTIONS_IGNORE_SYS` so that it always applies
  to wolfSSL headers, also during feature detection.
- md4, md5, sha256: simplify fallback logic.
- delete 20+ unused macros.
- scope or move macros to avoid `-Wunused-macros` warnings.
- examples: delete unused code.

The warning detects macros defined but not used within the same C
source. It does not warn for macros defined in headers. It also works
with unity builds, but to a lesser extent.

Closes #20593
2026-02-19 00:00:48 +01:00
..
apple.c lib: skip compiling code with features disabled 2026-02-13 15:48:23 +01:00
apple.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
cipher_suite.c tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
cipher_suite.h build: assume stdint.h 2026-01-28 12:05:20 +01:00
gtls.c tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
gtls.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
hostcheck.c tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
hostcheck.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
keylog.c tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
keylog.h spelling: 'a' vs 'an' 2025-05-30 11:38:35 +02:00
mbedtls.c tidy-up: move literals to right-side of if expressions (where missing) 2026-02-07 16:41:51 +01:00
mbedtls.h lib: include files using known path 2025-04-08 17:00:00 +02:00
openssl.c build: fix -Wunused-macros warnings, and related tidy-ups 2026-02-19 00:00:48 +01:00
openssl.h openssl: disable local keylog feature if built-in upstream 2026-02-18 12:04:23 +01:00
rustls.c tidy-up: move literals to right-side of if expressions (where missing) 2026-02-07 16:41:51 +01:00
rustls.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
schannel.c schannel: refactor: reduce variable scopes, fix comment, fix indent 2026-02-12 22:34:58 +01:00
schannel.h tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
schannel_int.h schannel: refactor: reduce variable scopes, fix comment, fix indent 2026-02-12 22:34:58 +01:00
schannel_verify.c lib: skip compiling code with features disabled 2026-02-13 15:48:23 +01:00
vtls.c lib: skip compiling code with features disabled 2026-02-13 15:48:23 +01:00
vtls.h tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
vtls_int.h lib: skip compiling code with features disabled 2026-02-13 15:48:23 +01:00
vtls_scache.c tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
vtls_scache.h lib: skip compiling code with features disabled 2026-02-13 15:48:23 +01:00
vtls_spack.c build: tidy up and dedupe strdup functions 2026-02-03 14:02:30 +01:00
vtls_spack.h build: fix build errors/warnings in rare configurations 2025-07-23 22:17:03 +02:00
wolfssl.c build: fix -Wunused-macros warnings, and related tidy-ups 2026-02-19 00:00:48 +01:00
wolfssl.h wolfssl: fix possible assert with !HAVE_NO_EX wolfSSL builds 2025-12-07 17:01:45 +01:00
x509asn1.c build: fix -Wunused-macros warnings, and related tidy-ups 2026-02-19 00:00:48 +01:00
x509asn1.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00