Repository navigation
Conversation
Contributor
vszakats
reviewed
Feb 23, 2026
vszakats
added a commit
to curl/curl-for-win
that referenced
this pull request
Feb 24, 2026
bagder
force-pushed
the
bagder/ntlm-disabled
branch
from
February 25, 2026 14:12
98b839d to
8f13081
Compare
bagder
force-pushed
the
bagder/ntlm-disabled
branch
2 times, most recently
from
March 2, 2026 15:47
6ec6716 to
9908d09
Compare
bagder
marked this pull request as ready for review
March 2, 2026 16:04
bagder
added a commit
that referenced
this pull request
Mar 21, 2026
NTLM has weak security and does not work over HTTP/2 or HTTP/3. Enable in cmake or configure to get support for it. Closes #20698
bagder
force-pushed
the
bagder/ntlm-disabled
branch
from
March 21, 2026 11:30
9908d09 to
1ccdf8b
Compare
NTLM has weak security and does not work over HTTP/2 or HTTP/3. Enable in cmake or configure to get support for it. Closes #20698
bagder
force-pushed
the
bagder/ntlm-disabled
branch
from
March 21, 2026 14:10
1ccdf8b to
3032efb
Compare
4 tasks done
This was referenced May 27, 2026
Closed
outcast36
pushed a commit
to greearb/curl
that referenced
this pull request
Jun 3, 2026
NTLM has weak security and does not work over HTTP/2 or HTTP/3. Enable in cmake or configure to get support for it. Closes curl#20698
ns-ylambert
added a commit
to ns-ylambert/curl-rust
that referenced
this pull request
Sep 30, 2026
libcurl 8.20 (released 2026-04-29) flipped NTLM to opt-in behind `CURL_ENABLE_NTLM` (curl/curl#20698, commit [`cc0c83c5f853`]). In `lib/curl_setup.h`: /* Single point where USE_NTLM definition might be defined */ -#ifndef CURL_DISABLE_NTLM +#ifdef CURL_ENABLE_NTLM The change was security-driven (weak auth, no HTTP/2/3 support). Same PR also removed every reference to `CURL_DISABLE_NTLM` from libcurl's source, docs, CMake, and configure logic. **The old opt-out symbol was retired entirely**. curl-sys did not propagate the change downstream: the `ntlm` cargo feature (sagebind#428, commit [`f0bbf37241e2`]) still only compiles NTLM source files. Else-branch defines `CURL_DISABLE_NTLM`, which is now dead code. The `.define("CURL_ENABLE_NTLM", None)` that the opt-in contract now requires was never added. Result: from curl-sys 0.4.90+curl-8.20.0 onward (released 2026-05-01), `--features curl-sys/ntlm` compiles the NTLM sources but exports zero NTLM symbols, so the feature does nothing. Two edits, cross-platform (not target-scoped): whoever activates `curl-sys/ntlm` opts in on any platform. - Add `.define("CURL_ENABLE_NTLM", None)` alongside the existing NTLM `.file(...)` calls so the feature does what it advertises again. - Drop the now-dead `else { cfg.define("CURL_DISABLE_NTLM", None); }` branch (macro unused in libcurl >= 8.20). Add a regression test in `src/lib.rs`'s `mod tests` asserting that `Version::feature_ntlm()` is `true` when the `ntlm` feature is enabled. Fails on any `curl-sys 0.4.90+curl-8.20.0` or later without this fix. [`cc0c83c5f853`]: curl/curl@cc0c83c5f853 [`f0bbf37241e2`]: sagebind@f0bbf37241e2
ns-ylambert
added a commit
to ns-ylambert/curl-rust
that referenced
this pull request
Sep 30, 2026
libcurl 8.20 (released 2026-04-29) flipped NTLM to opt-in behind `CURL_ENABLE_NTLM` (curl/curl#20698, commit [`cc0c83c5f853`]). In `lib/curl_setup.h`: /* Single point where USE_NTLM definition might be defined */ -#ifndef CURL_DISABLE_NTLM +#ifdef CURL_ENABLE_NTLM The change was security-driven (weak auth, no HTTP/2/3 support). Same PR also removed every reference to `CURL_DISABLE_NTLM` from libcurl's source, docs, CMake, and configure logic. **The old opt-out symbol was retired entirely**. curl-sys did not propagate the change downstream: the `ntlm` cargo feature (sagebind#428, commit [`f0bbf37241e2`]) still only compiles NTLM source files. Else-branch defines `CURL_DISABLE_NTLM`, which is now dead code. The `.define("CURL_ENABLE_NTLM", None)` that the opt-in contract now requires was never added. Result: from curl-sys 0.4.90+curl-8.20.0 onward (released 2026-05-01), `--features curl-sys/ntlm` compiles the NTLM sources but exports zero NTLM symbols, so the feature does nothing. Two edits, cross-platform (whoever activates `curl-sys/ntlm` opts in on any platform): - Add `.define("CURL_ENABLE_NTLM", None)` alongside the existing NTLM `.file(...)` calls so the feature does what it advertises again. - Drop the now-dead `else { cfg.define("CURL_DISABLE_NTLM", None); }` branch. Add a regression test in `src/lib.rs`'s `mod tests` asserting that `Version::feature_ntlm()` is `true` when the `ntlm` feature is enabled. [`cc0c83c5f853`]: curl/curl@cc0c83c5f853 [`f0bbf37241e2`]: sagebind@f0bbf37241e2
ns-ylambert
added a commit
to ns-ylambert/curl-rust
that referenced
this pull request
Sep 30, 2026
libcurl 8.20 (released 2026-04-29) flipped NTLM to opt-in behind `CURL_ENABLE_NTLM` (curl/curl#20698, commit [`cc0c83c5f853`]). In `lib/curl_setup.h`: /* Single point where USE_NTLM definition might be defined */ -#ifndef CURL_DISABLE_NTLM +#ifdef CURL_ENABLE_NTLM The change was security-driven (weak auth, no HTTP/2/3 support). Same PR also removed every reference to `CURL_DISABLE_NTLM` from libcurl's source, docs, CMake, and configure logic. **The old opt-out symbol was retired entirely**. curl-sys did not propagate the change downstream: the `ntlm` cargo feature (sagebind#428, commit [`f0bbf37241e2`]) still only compiles NTLM source files. Else-branch defines `CURL_DISABLE_NTLM`, which is now dead code. The `.define("CURL_ENABLE_NTLM", None)` that the opt-in contract now requires was never added. Result: from curl-sys 0.4.90+curl-8.20.0 onward (released 2026-05-01), `--features curl-sys/ntlm` compiles the NTLM sources but exports zero NTLM symbols, so the feature does nothing. Two edits, cross-platform (whoever activates `curl-sys/ntlm` opts in on any platform): - Add `.define("CURL_ENABLE_NTLM", None)` alongside the existing NTLM `.file(...)` calls so the feature does what it advertises again. - Drop the now-dead `else { cfg.define("CURL_DISABLE_NTLM", None); }` branch. Plus, a regression test in `src/lib.rs`'s `mod tests` asserting that `Version::feature_ntlm()` is `true` when the `ntlm` feature is enabled. [`cc0c83c5f853`]: curl/curl@cc0c83c5f853 [`f0bbf37241e2`]: sagebind@f0bbf37241e2
ns-ylambert
added a commit
to ns-ylambert/curl-rust
that referenced
this pull request
Oct 1, 2026
libcurl 8.20 (released 2026-04-29) flipped NTLM to opt-in behind `CURL_ENABLE_NTLM` (curl/curl#20698, commit [`cc0c83c5f853`]). In `lib/curl_setup.h`: /* Single point where USE_NTLM definition might be defined */ -#ifndef CURL_DISABLE_NTLM +#ifdef CURL_ENABLE_NTLM The change was security-driven (weak auth, no HTTP/2/3 support). Same PR also removed every reference to `CURL_DISABLE_NTLM` from libcurl's source, docs, CMake, and configure logic. **The old opt-out symbol was retired entirely**. curl-sys did not propagate the change downstream: the `ntlm` cargo feature (sagebind#428, commit [`f0bbf37241e2`]) still only compiles NTLM source files. Else-branch defines `CURL_DISABLE_NTLM`, which is now dead code. The `.define("CURL_ENABLE_NTLM", None)` that the opt-in contract now requires was never added. Result: from curl-sys 0.4.90+curl-8.20.0 onward (released 2026-05-01), `--features curl-sys/ntlm` compiles the NTLM sources but exports zero NTLM symbols, so the feature does nothing. Two edits, cross-platform (whoever activates `curl-sys/ntlm` opts in on any platform): - Add `.define("CURL_ENABLE_NTLM", None)` alongside the existing NTLM `.file(...)` calls so the feature does what it advertises again. - Drop the now-dead `else { cfg.define("CURL_DISABLE_NTLM", None); }` branch. Plus, a regression test in `src/lib.rs`'s `mod tests` asserting that `Version::feature_ntlm()` is `true` when the `ntlm` feature is enabled. [`cc0c83c5f853`]: curl/curl@cc0c83c5f853 [`f0bbf37241e2`]: sagebind@f0bbf37241e2
ns-ylambert
added a commit
to ns-ylambert/curl-rust
that referenced
this pull request
Oct 12, 2026
libcurl 8.20 (released 2026-04-29) flipped NTLM to opt-in behind `CURL_ENABLE_NTLM` (curl/curl#20698, commit [`cc0c83c5f853`]). In `lib/curl_setup.h`: /* Single point where USE_NTLM definition might be defined */ -#ifndef CURL_DISABLE_NTLM +#ifdef CURL_ENABLE_NTLM The change was security-driven (weak auth, no HTTP/2/3 support). Same PR also removed every reference to `CURL_DISABLE_NTLM` from libcurl's source, docs, CMake, and configure logic. **The old opt-out symbol was retired entirely**. curl-sys did not propagate the change downstream: the `ntlm` cargo feature (sagebind#428, commit [`f0bbf37241e2`]) still only compiles NTLM source files. Else-branch defines `CURL_DISABLE_NTLM`, which is now dead code. The `.define("CURL_ENABLE_NTLM", None)` that the opt-in contract now requires was never added. Result: from curl-sys 0.4.90+curl-8.20.0 onward (released 2026-05-01), `--features curl-sys/ntlm` compiles the NTLM sources but exports zero NTLM symbols, so the feature does nothing. Two edits, cross-platform (whoever activates `curl-sys/ntlm` opts in on any platform): - Add `.define("CURL_ENABLE_NTLM", None)` alongside the existing NTLM `.file(...)` calls so the feature does what it advertises again. - Drop the now-dead `else { cfg.define("CURL_DISABLE_NTLM", None); }` branch. Plus, a regression test in `src/lib.rs`'s `mod tests` asserting that `Version::feature_ntlm()` is `true` when the `ntlm` feature is enabled. [`cc0c83c5f853`]: curl/curl@cc0c83c5f853 [`f0bbf37241e2`]: sagebind@f0bbf37241e2
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.
NTLM has weak security and does not work over HTTP/2 or HTTP/3.
Note: this also disables SMB(S) support by default as it depends on NTLM to function.
Enable in cmake or configure to get support for it. (Tentatively to get merged in the coming feature window, late March 2026)