Change #282197
| Category | None |
| Changed by | Joshua Rogers <MegaManSec@users.noreply.github.com> |
| Changed at | Sat 19 Sep 2026 10:31:28 |
| Repository | https://api.github.com/repos/curl/curl |
| Project | curl/curl |
| Branch | master |
| Revision | e47b56a762058ed1b3ea4ac8a8d4fdc98abac088 |
Comments
socks: support CURLAUTH_ONLY in CURLOPT_SOCKS5_AUTH The SOCKS5 method negotiation always offered "no authentication" and accepted it, so the bitmask could not express that the connection has to be authenticated. CURLAUTH_NONE is zero and cannot say it either. With CURLAUTH_ONLY set, the method is neither offered nor accepted, and a connection that did not authenticate is not reused. Document both, and add tests 1742, 1743 and 1744. Closes #23003
Changed files
- docs/libcurl/opts/CURLOPT_SOCKS5_AUTH.md
- lib/setopt.c
- lib/socks.c
- lib/url.c
- lib/urldata.h
- tests/data/Makefile.am
- tests/data/test1742
- tests/data/test1743
- tests/data/test1744
- tests/libtest/Makefile.inc
- tests/libtest/lib1742.c
- tests/libtest/lib1744.c