curl/lib/vtls
Daniel Stenberg 10bb489b22
schannel: refactor: reduce variable scopes, fix comment, fix indent
Refactor and simplify the Schannel code, primarily by reducing
duplicated buffer-management and credential-setup logic.

- split client certificate selection into get_client_cert() and SSPI
  credential acquisition into acquire_sspi_handle()
- introduce a struct sbuffer for encrypted/decrypted buffering
- Add ensure_encoding_size() and ensure_decoding_size() helpers to
  centralize buffer growth/realloc decisions
- Tighten variable scopes and tidy indentation/logging in the handshake
  and receive/decrypt loops.
- Update comments and adjusts some receive error-condition handling to
  better preserve buffered-data behavior.

Closes #20569
2026-02-12 22:34:58 +01:00
..
apple.c build: fully omit verbose strings and code when disabled 2026-01-21 13:18:35 +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 tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
openssl.h tidy-up: miscellaneous 2025-12-26 22:06:09 +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 tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
vtls.c vtls: use ALPN http/1.0 & http/1.1 for HTTP/1.0 requests 2026-02-09 12:15:35 -05:00
vtls.h tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
vtls_int.h tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
vtls_scache.c tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
vtls_scache.h tidy-up: miscellaneous 2025-12-26 22:06:09 +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 tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
wolfssl.h wolfssl: fix possible assert with !HAVE_NO_EX wolfSSL builds 2025-12-07 17:01:45 +01:00
x509asn1.c tidy-up: miscellaneous 2026-02-12 14:52:16 +01:00
x509asn1.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00