Files
codex/codex-rs/http-client/tests/windows_proxy_auth_features.rs
T
efrazer-oai d5bc4161b6 Add a Windows proxy authentication tunnel helper (#55994)
## What changed

Expose `connect_windows_proxy` for callers handling a CONNECT `407` response. Use libcurl with the signed-in Windows user's Negotiate or NTLM credentials, then return the authenticated connection with buffered data preserved.

Support HTTP and HTTPS proxies, with default or caller-provided TLS configuration. HTTPS proxies requiring authentication tokens bound to their TLS connection are unsupported.

Enable libcurl's NTLM support in Cargo and Bazel builds.

## Testing

Add a Windows-only test asserting that libcurl provides NTLM, SPNEGO, and SSPI support.

GitOrigin-RevId: 4ed7d2208766404b6125ce2f4b5f91de5616a37f
2026-10-21 21:50:55 +00:00

11 lines
246 B
Rust

#![cfg(windows)]
#[test]
fn curl_supports_windows_proxy_authentication() {
let version = curl::Version::get();
assert!(
version.feature_ntlm() && version.feature_spnego() && version.feature_sspi(),
"{version:?}"
);
}