Repository navigation
Conversation
… required SSPI (in curl) It works by accident with mingw-w64, but it seems doubtful those binaries are actually running in a UWP env.
This reverts commit 7e2b536.
nbaws
pushed a commit
to nbaws/curl
that referenced
this pull request
Apr 26, 2025
To keep testing these with MSVC: - UWP !ssl - arm64 build on the `windows-11-arm` runner - examples - OpenSSH-Windows (fix install on `windows-11-arm`) - `windows-2025` runner - cmake pre-fill checker Surprise: UWP doesn't support SSPI, which is required by curl's Schannel backend. Thus, no TLS support for this UWP build. It also suggests the Schannel UWP mingw-w64 binaries may be broken and just a happy build accident thanks to mingw-w64 headers being inaccurate. Building zlib + libssh2 might actually take up to 2+ minutes with vcpkg, instead of the previously estimated <1.5 minutes. Follow-up to e3912f0 curl#17086 Follow-up to 15fb1dc curl#17069 Closes curl#17089
nbaws
pushed a commit
to nbaws/curl
that referenced
this pull request
Apr 26, 2025
To keep testing these with MSVC: - UWP !ssl - arm64 build on the `windows-11-arm` runner - examples - OpenSSH-Windows (fix install on `windows-11-arm`) - `windows-2025` runner - cmake pre-fill checker Surprise: UWP doesn't support SSPI, which is required by curl's Schannel backend. Thus, no TLS support for this UWP build. It also suggests the Schannel UWP mingw-w64 binaries may be broken and just a happy build accident thanks to mingw-w64 headers being inaccurate. Building zlib + libssh2 might actually take up to 2+ minutes with vcpkg, instead of the previously estimated <1.5 minutes. Follow-up to e3912f0 curl#17086 Follow-up to 15fb1dc curl#17069 Closes curl#17089
vszakats
added a commit
that referenced
this pull request
Apr 29, 2025
The unplanned dropping of the granular vcpkg binary cache indeed fell into the cracks between Microsoft's various departments. The old method is now official dropped, without replacement either on the vcpkg side or the GitHub cache provider side. Without a granular cache, vcpkg is impractical for builds larger than a small dependency tree in CI, for performance reasons. A granular cache is critical for CI use. Building dependencies is not a goal of this CI, so a more desirable option would be pre-built binary downloads. This would also allow keeping job timeouts low, which is important for quick iteration in GHA when a flaky job requiring a manual retry needs all other jobs to finish first. (GHA often disregards step timeouts, which is another contributing factor here.) Windows remains tested extensively with MSYS2, curl-for-win, and via AppVeyor CI with MSVC + OpenSSL, and also in GHA via scaled back vcpkg jobs that perform well without caching. What's lost is the recently added Android OpenSSL build tests. We may consider building/cachine important dependencies manually as in GHA/linux-http3, and/or try integrating MSVC jobs with MSYS2 UCRT DLLs. Ref: microsoft/vcpkg-tool#1662 Ref: microsoft/vcpkg#45073 Follow-up to cd0ec47 #17089 Follow-up to e3912f0 #17086 Follow-up to 15fb1dc #17069 Closes #17200
4 tasks done
vszakats
added a commit
that referenced
this pull request
Jun 10, 2025
…bssh2 Extend MSVC jobs with the option to use MSYS2 binary package as DLL dependencies. Allow to use them alone (without vcpkg) or combined with vcpkg packages. This saves the trouble of building these packages from source and cache them manually. This solution requires two tricks: - workaround for zlib which installs a target-specific `zconf.h` that's not portable between platforms and C compilers. - manual dependency configuration in CMake to ensure linking against the MSYS2 DLLs (and not it static libs). Static libs aren't portable to MSVC due to missing symbols `__chkstk_ms`, `_stack_chk_fail`, `_memcpy_chk`, `_stack_chk_guard`, and potentially other issues. CMake in MSVC mode, `linker.exe` and `pkg-config` pick the static libs by default. To pick `.dll.a` in favour of `.a`, these tools would have to be taught about this convention. An alternative is deleting static libs and see if `.dll.a` are picked-up automatically. Using MSYS2 packages adds an install step taking 15-45 seconds per job. It allowed to: - re-enable libpsl for all MSVC jobs. - convert the Intel 64-bit job to use MSYS2 without vcpkg, enabling brotli, zstd, OpenSSL 3.5.0, libssh2 (with OpenSSL cryprography) and nghttp2. Using the same technique it's possible to re-enable more features in MSVC builds, e.g. GnuTLS (also with H3), LibreSSL, mbedTLS, nghttp3, ngtcp2, libssh, c-ares, gsasl, and replace vcpkg zlib, for faster runs. What's missing compared to vcpkg is BoringSSL and wolfSSL (the MSYS2-supplied build doesn't fit curl's requirements IIRC). These could be built and cached manually. Also: - add workaround for zlib (classic) which uses a generated `zconf.h`, rendering the MSYS2 zlib header incompatible with MSVC. - set the correct `msystem` for arm64. - allow using MSVC without vcpkg. Follow-up to cd0ec47 #17089 Closes #17561
denandz
pushed a commit
to denandz/curl
that referenced
this pull request
Jun 21, 2025
…bssh2 Extend MSVC jobs with the option to use MSYS2 binary package as DLL dependencies. Allow to use them alone (without vcpkg) or combined with vcpkg packages. This saves the trouble of building these packages from source and cache them manually. This solution requires two tricks: - workaround for zlib which installs a target-specific `zconf.h` that's not portable between platforms and C compilers. - manual dependency configuration in CMake to ensure linking against the MSYS2 DLLs (and not it static libs). Static libs aren't portable to MSVC due to missing symbols `__chkstk_ms`, `_stack_chk_fail`, `_memcpy_chk`, `_stack_chk_guard`, and potentially other issues. CMake in MSVC mode, `linker.exe` and `pkg-config` pick the static libs by default. To pick `.dll.a` in favour of `.a`, these tools would have to be taught about this convention. An alternative is deleting static libs and see if `.dll.a` are picked-up automatically. Using MSYS2 packages adds an install step taking 15-45 seconds per job. It allowed to: - re-enable libpsl for all MSVC jobs. - convert the Intel 64-bit job to use MSYS2 without vcpkg, enabling brotli, zstd, OpenSSL 3.5.0, libssh2 (with OpenSSL cryprography) and nghttp2. Using the same technique it's possible to re-enable more features in MSVC builds, e.g. GnuTLS (also with H3), LibreSSL, mbedTLS, nghttp3, ngtcp2, libssh, c-ares, gsasl, and replace vcpkg zlib, for faster runs. What's missing compared to vcpkg is BoringSSL and wolfSSL (the MSYS2-supplied build doesn't fit curl's requirements IIRC). These could be built and cached manually. Also: - add workaround for zlib (classic) which uses a generated `zconf.h`, rendering the MSYS2 zlib header incompatible with MSVC. - set the correct `msystem` for arm64. - allow using MSVC without vcpkg. Follow-up to cd0ec47 curl#17089 Closes curl#17561
2 tasks done
vszakats
added a commit
that referenced
this pull request
Jul 31, 2025
Schannel is not supported by UWP. SSPI is also required by Schannel in curl, and SSPI also isn't supported by UWP. mingw-w64 is able to create such build regardless (my guess: due to API parts not accurately marked as UWP-only), but the binary is unlikely to work. With MSVC the failure happens at build-time. Ref: https://learn.microsoft.com/windows/win32/api/sspi/nf-sspi-initsecurityinterfacea#requirements Ref: https://learn.microsoft.com/windows/win32/secauthn/initializesecuritycontext--schannel#requirements Drop all UWP-related logic, including two related feature checks, that can now be permanently enabled. Also: - build: show fatal error for Schannel in UWP mode. - build: do not allow enabling SSPI in UWP mode. - drop undocumented option `DISABLE_SCHANNEL_CLIENT_CERT`. Added without mention in an unrelated commit. The PR text says to save size. On x64 this is 0.3%, or 4KB out of 1.3MB. The tiny gain doesn't justify an extra build variant. Ref: 8beff43 - move `MPROTO_SCHANNEL_CERT_SHARE_KEY` closer to its use. - replace commented block with `#if 0`. Reviewed-by: Jay Satiro Follow-up to cd0ec47 #17089 Closes #18116
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To keep testing these with MSVC:
windows-11-armrunnerwindows-11-arm)windows-2025runnerSurprise: UWP doesn't support SSPI, which is required by curl's Schannel
backend. Thus, no TLS support for this UWP build. It also suggests
the Schannel UWP mingw-w64 binaries may be broken and just a happy build
accident thanks to mingw-w64 headers being inaccurate.
Building zlib + libssh2 might actually take up to 2+ minutes with vcpkg,
instead of the previously estimated <1.5 minutes.
Follow-up to e3912f0 #17086
Follow-up to 15fb1dc #17069