Skip to content

windows: document toolchain support for some macros#18085

Closed
vszakats wants to merge 20 commits intocurl:masterfrom
vszakats:w-tidy
Closed

windows: document toolchain support for some macros#18085
vszakats wants to merge 20 commits intocurl:masterfrom
vszakats:w-tidy

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Jul 29, 2025

The oldest MS SDK I checked is 6.0A (VS2008). Versions are approximate
beyond 7.1A. I only have two Win10 SDKs to verify:
10.0.16299.0 (VS2017-15.4) and 10.0.22621.0 (VS2022).

Ref: https://en.wikipedia.org/wiki/Microsoft_Windows_SDK
Ref: https://developer.microsoft.com/windows/downloads/sdk-archive/index-legacy (mostly recent versions)


  • try going back to 6.0a or 7.0a, but so far I did no manage to download these SDK in an unzippable. [DONE]

@vszakats vszakats marked this pull request as draft July 29, 2025 18:11
@vszakats vszakats changed the title windows: drop/document SDK fallbacks windows: document toolchain support for some macros/features Jul 30, 2025
@vszakats vszakats marked this pull request as ready for review July 30, 2025 08:56
@vszakats vszakats marked this pull request as draft July 30, 2025 11:01
@vszakats vszakats force-pushed the w-tidy branch 3 times, most recently from 6aa8246 to 8a2811e Compare July 30, 2025 13:24
vszakats added 17 commits July 30, 2025 21:08
https://learn.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-pfximportcertstore

```
D:/a/curl/curl/lib/vtls/schannel.c: In function 'schannel_acquire_credential_handle':
D:/a/curl/curl/lib/vtls/schannel.c:651:24: error: implicit declaration of function 'PFXImportCertStore' [-Wimplicit-function-declaration]
  651 |           cert_store = PFXImportCertStore(&datablob, pszPassword,
      |                        ^~~~~~~~~~~~~~~~~~
D:/a/curl/curl/lib/vtls/schannel.c:651:24: error: nested extern declaration of 'PFXImportCertStore' [-Werror=nested-externs]
D:/a/curl/curl/lib/vtls/schannel.c:651:22: error: assignment to 'HCERTSTORE' {aka 'void *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
  651 |           cert_store = PFXImportCertStore(&datablob, pszPassword,
      |                      ^
D:/a/curl/curl/lib/vtls/schannel.c:654:22: error: assignment to 'HCERTSTORE' {aka 'void *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
  654 |           cert_store = PFXImportCertStore(&datablob, pszPassword, 0);
      |                      ^
D:/a/curl/curl/lib/vtls/schannel.c:717:11: error: implicit declaration of function 'CryptStringToBinary' [-Wimplicit-function-declaration]
  717 |       if(!CryptStringToBinary(cert_thumbprint_str,
      |           ^~~~~~~~~~~~~~~~~~~
D:/a/curl/curl/lib/vtls/schannel.c:717:11: error: nested extern declaration of 'CryptStringToBinary' [-Werror=nested-externs]
D:/a/curl/curl/lib/vtls/schannel.c:719:31: error: 'CRYPT_STRING_HEX' undeclared (first use in this function)
  719 |                               CRYPT_STRING_HEX,
      |                               ^~~~~~~~~~~~~~~~
D:/a/curl/curl/lib/vtls/schannel.c:719:31: note: each undeclared identifier is reported only once for each function it appears in
cc1.exe: all warnings being treated as errors
```
https://github.com/curl/curl/actions/runs/16603975843/job/46970895223?pr=18085#step:10:24
The first currently supported (VS2008)

Beyond 7.1A it isn't precise, I only have
Win10 10.0.16299.15 SDK to verify.
@vszakats vszakats marked this pull request as ready for review July 30, 2025 19:45
@vszakats vszakats changed the title windows: document toolchain support for some macros/features windows: document toolchain support for some macros Jul 30, 2025
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

Comments