Repository navigation
winhttp_offline: credentials, auth schemes and auto-proxy detection answer for the offline handles - #8670
winhttp_offline: credentials, auth schemes and auto-proxy detection answer for the offline handles#8670tedin7 wants to merge 5 commits into
Conversation
Grimkaaah
left a comment
There was a problem hiding this comment.
Independent Linux CPU review (b33bf5c8)
What changed: winhttp_offline answers credentials / auth schemes / auto-proxy detection for offline handles; tests + CMake.
Checked:
- Diff review of shim + tests (runtime not built here).
- Credentials accepted but not retained; auto-proxy returns
ERROR_WINHTTP_AUTODETECTION_FAILED.
Looks coherent for the offline shim; no game files.
|
Verified head
AI-assisted. |
|
Tested For this change. Setup. Built with MSVC 14.52 (Visual Studio 18), Windows SDK 10.0.26100, Vulkan SDK 1.4.363.1, Ninja RelWithDebInfo on Windows Server 2025 (no Vulkan driver there), then the same binaries run through
Under Wine the tree is test by test the same as Because the six were built together, there is no per-PR negative control in this run: a regression would have shown as a difference from |
|
Verified 16290ee against main 6312c05 (clean merge, tree 84f716b85; recheck clean at 5d74c27). C++/Windows diff — not runnable here; CI is the execution gate (checks pending at check time). check_no_game_data clean. Review: the three new offline answers match host error taxonomies, and the interposed-TU test (g_native_auto_proxy_calls) gives a genuine no-native-discovery guarantee, including the zero-flags ERROR_INVALID_PARAMETER case added by force-push. Nits: nonzero-but-invalid flags (e.g. 0x4) answer ERROR_WINHTTP_AUTODETECTION_FAILED where native gives ERROR_INVALID_PARAMETER, and integrated auth with a user set but NULL password is rejected though WinHTTP accepts it; neither can touch network or memory offline. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
ProjectLeonida#8919 fork integration. Each parent after the first is an exact reviewed PR head. ProjectLeonida#8670 16290ee ProjectLeonida#8670 (comment) AI-assisted integration.
What
Route WinHTTP credentials, authentication scheme queries and auto proxy discovery through the offline shim. Do not retain credentials or perform proxy discovery.
Why
The host rejects offline request handles with ERROR_INVALID_HANDLE.
Tested
Zero-flags review follow-up: p2
winhttp_offline_testpassed 101 checks, 0 failures after recompiling the interposed shim; before the fix, 101 checks, 1 failure. No GPU used.DNS-only and combined flags follow-up: p2
winhttp_offline_testpassed 100 checks, 0 failures; an initial Wine prefix initialization failed before the test ran. No GPU used.p2, Wine/Windows target:
/root/fast_test_exe.sh /root/c2-winhttp-credentials-autoproxy winhttp_offline_test. On origin/main 867d922: 86 checks, 1 failure; with the change: 96 checks, 0 failures. Host credential and auth scheme calls both returned ERROR_INVALID_HANDLE for the offline request. No GPU used.Review follow-up on p2:
winhttp_offline_testpassed 98 checks. Replacing the resolved auto-proxy function with native WinHTTP made the zero-flags negative control fail (97 checks, 1 failure); DHCP was not attempted in that run. No GPU used.Valid-flags review follow-up: p2
winhttp_offline_testpassed 98 checks; a test-only DHCP delegation to the intercepted native function failed the new check (98 checks, 1 failure), without network discovery. No GPU used.git diff --checkandpython -I scripts/check_no_game_data.py runtime/shims/winhttp_offline.cpp runtime/test/winhttp_offline_test.cpppassed.AI-assisted.
@ItsNotRexed: an exe PR, as you asked.
Claim: #8504 (comment)