mirror of
https://github.com/openai/codex.git
synced 2026-10-23 18:08:45 +00:00
## 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
19 lines
949 B
TOML
19 lines
949 B
TOML
[env]
|
|
# curl-sys enables its NTLM sources but does not set the flag required by libcurl 8.21.
|
|
CFLAGS_aarch64_pc_windows_gnullvm = "-DCURL_ENABLE_NTLM"
|
|
CFLAGS_aarch64_pc_windows_msvc = "-DCURL_ENABLE_NTLM"
|
|
CFLAGS_x86_64_pc_windows_gnullvm = "-DCURL_ENABLE_NTLM"
|
|
CFLAGS_x86_64_pc_windows_msvc = "-DCURL_ENABLE_NTLM"
|
|
|
|
[target.'cfg(all(windows, target_env = "msvc"))']
|
|
rustflags = ["-C", "link-arg=/STACK:8388608", "-C", "target-feature=+crt-static"]
|
|
|
|
# MSVC emits a warning about code that may trip "Cortex-A53 MPCore processor bug #843419" (see
|
|
# https://developer.arm.com/documentation/epm048406/latest) which is sometimes emitted by LLVM.
|
|
# Since Arm64 Windows 10+ isn't supported on that processor, it's safe to disable the warning.
|
|
[target.aarch64-pc-windows-msvc]
|
|
rustflags = ["-C", "link-arg=/STACK:8388608", "-C", "link-arg=/arm64hazardfree"]
|
|
|
|
[target.'cfg(all(windows, target_env = "gnu"))']
|
|
rustflags = ["-C", "link-arg=-Wl,--stack,8388608"]
|