Skip to content

windows: tidy up includes, macros, document dependencies - #20564

Closed
vszakats wants to merge 10 commits into
curl:masterfrom
vszakats:schsspitidy
Closed

vszakats wants to merge 10 commits into
curl:masterfrom
vszakats:schsspitidy

Conversation

@vszakats

@vszakats vszakats commented Feb 11, 2026 •

Copy link
Copy Markdown
Member
  • define SECURITY_WIN32 globally in curl_setup.h.
    To make sure it applies to all includes.

  • document which Windows headers require SECURITY_WIN32.

  • stop suppressing MSVC warning:
    C4201 is: nonstandard extension used : nameless struct/union
    The warning is no longer seen in supported build envs with the current
    codebase.
    Follow-up to 8beff43 Add SChannel TLS 1.3 support  #8419

  • document why SCHANNEL_USE_BLACKLISTS is needed.

  • just define SCHANNEL_USE_BLACKLISTS, drop the unnecessary value 1.

  • stop defining unused SCH_CRED_MAX_SUPPORTED* fallback macros.
    Follow-up to 8beff43 Add SChannel TLS 1.3 support  #8419

  • document why subauth.h is included (where missing).

  • move and de-dupe subauth.h include into curl_setup.h, limit to
    Schannel builds.

  • stop include schnlsp.h. It is a 1-to-1 compatibility wrapper for
    schannel.h.

  • curl_sspi.h: clarify comment about SP_NAME_ macros.
    They are local macros, their SDK names are different and curl does not
    use them.

  • curl_sspi.h: drop superfluous includes security.h and rpc.h.

Cherry-picked from #20556

@vszakats vszakats added build Windows Windows-specific tidy-up labels Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant