]> git.ipfire.org Git - thirdparty/curl.git/commit
curl: error out when options need features not present in libcurl
authorDaniel Stenberg <daniel@haxx.se>
Wed, 9 Mar 2022 09:00:21 +0000 (10:00 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 10 Mar 2022 07:30:45 +0000 (08:30 +0100)
commit95e8515ca0801c2b1aacbdad03c9a6381a9fedfb
treea89c5ff4c320daa7788469370f3a40ab783d1681
parent96edc7954f5c2ca34587c44d0f6e46faa5492717
curl: error out when options need features not present in libcurl

Trying to use a proxy when libcurl was built with proxy support disabled
should make curl error out properly.

Remove knowledge of disabled features from the tool code and instead
make it properly respond to what libcurl returns. Update all tests to
properly require the necessary features to be present/absent so that the
test suite can still be run even with libcurl builds with disabled
features.

Ref: https://curl.se/mail/archive-2022-03/0013.html
Closes #8565
23 files changed:
src/tool_operate.c
src/tool_setopt.c
src/tool_setopt.h
tests/data/test1004
tests/data/test1034
tests/data/test1035
tests/data/test1212
tests/data/test1248
tests/data/test1249
tests/data/test1252
tests/data/test700
tests/data/test701
tests/data/test702
tests/data/test706
tests/data/test707
tests/data/test708
tests/data/test709
tests/data/test710
tests/data/test711
tests/data/test712
tests/data/test713
tests/data/test714
tests/data/test715