20d447c1 | 21-Aug-2024 |
Daniel Stenberg |
getinfo: return zero for unsupported options (when disabled) instead of returning an error code to the getinfo() call. Like other info variables work. Closes #14634 |
4be599fe | 22-Aug-2024 |
Viktor Szakats |
src: replace copy of printf mappings with an include Closes #14648 |
0c378946 | 22-Aug-2024 |
Viktor Szakats |
cmake: pkg-config 'found' message sync with native CMake Cherry-picked from #14610 |
c8c64c88 | 22-Aug-2024 |
Daniel Stenberg |
GHA: trim markdown headers before proselinting Allow interface.md to use more exclamation marks. Closes #14645 |
23749bfd | 21-Aug-2024 |
Daniel Stenberg |
GHA: add a checksrc job This job unconditionally runs checksrc on ALL .c and .h files present in git. checksrc.pl: fixed to look for ".checksrc" in the same directory from w
GHA: add a checksrc job This job unconditionally runs checksrc on ALL .c and .h files present in git. checksrc.pl: fixed to look for ".checksrc" in the same directory from where it loads the file to check so that it an be invoked like this Closes #14625
show more ...
|
99ba50d9 | 22-Aug-2024 |
Daniel Stenberg |
misc: general C style cleanups ... in code that previously was not checksrc'ed Closes #14625 |
42843af0 | 21-Aug-2024 |
Viktor Szakats |
tidy-up: spelling WebSockets Closes #14646 |
118f446a | 22-Aug-2024 |
Viktor Szakats |
src: delete `curlx_m*printf()` aliases A couple of seemingly random calls used them. They were all mapped to `curl_m*printf()`. Closes #14647 |
0052b4b5 | 21-Aug-2024 |
Viktor Szakats |
configure: fix indentation Also: - move `then`s and an `in` inline. - whitespace. Closes #14628 |
35034df1 | 21-Aug-2024 |
Chris Swan <478926+cpswan@users.noreply.github.com> |
docs: Clarify OpenSSF Best Practices vs Scorecard SECURITY.md has a recently added section titled OpenSSF Scorecard that actually documents OpenSSF Best Practices. Scorecard [0] is a
docs: Clarify OpenSSF Best Practices vs Scorecard SECURITY.md has a recently added section titled OpenSSF Scorecard that actually documents OpenSSF Best Practices. Scorecard [0] is a different OpenSSF project, that incorporates Best Practices, but is distinct in its objectives and how it achieves them. This change clarifies the terminology, and also removes any implication that Gold Best Practices is an award rather than a self certification programme. As curl was a leader in implementing Best Practices some folk may be more familiar with the earlier Core Infrastructure Initiative (CII) naming, so a reference to that has been added. [0] https://scorecard.dev/ Signed-off-by: Chris Swan <478926+cpswan@users.noreply.github.com> Ref: #14319 Closes #14635
show more ...
|
aebd5087 | 21-Aug-2024 |
Jan Venekamp <1422460+jan2000@users.noreply.github.com> |
sectransp: fix setting tls version Had multiple failures on test_17_09_ssl_min_max with --tlsv1 and --tlsv1.3. Closes #14621 |
a4152864 | 21-Aug-2024 |
Jan Venekamp <1422460+jan2000@users.noreply.github.com> |
tests: constrain http pytest to tests/http directory Running the http pytest had to be done from tests directory or above, because the repeat argument fixture was defined in tests/confte
tests: constrain http pytest to tests/http directory Running the http pytest had to be done from tests directory or above, because the repeat argument fixture was defined in tests/conftest.py. However, the repeat argument is not needed because its functionality can be provided by pytest-repeat as documented in the test's README.md. So, removed the pytest_addoption function for the repeat argument and the pytest_report_header function is moved to tests/http/conftest.py. TODO: Remove repeat argument from all tests. As a stopgap, a one-element list is defined for it for now. Closes #14611
show more ...
|
aeb1a281 | 20-Aug-2024 |
Daniel Stenberg |
gtls: fix OCSP stapling management Reported-by: Hiroki Kurosawa Closes #14642 |
c730c854 | 21-Aug-2024 |
Viktor Szakats |
build: make `CURL_FORMAT_CURL_OFF_T[U]` work with mingw-w64 <=7.0.0 Add tweak for mingw-w64 when building tests/http/client programs to avoid a bogus `-Wformat` warning when using mingw-
build: make `CURL_FORMAT_CURL_OFF_T[U]` work with mingw-w64 <=7.0.0 Add tweak for mingw-w64 when building tests/http/client programs to avoid a bogus `-Wformat` warning when using mingw-w64 v7.0.0 or older. The warning is bogus because these programs use curl's `printf()` implementation that is guaranteed to support that format spec. Add this for both CMake and autotools. (But only CMake is CI tested with an old toolchain.) Apply the workaround to `docs/examples`, and fix an example to use curl's `printf()` with `CURL_FORMAT_CURL_OFF_T`. Reintroduce curl `printf()` calls into `tests/http/client`, via #14625. Also restore large number masks to a printf, changed earlier in #14382. Follow-up to 232302f88a152a1d1722da9f69c383a766528918 #14382 Ref: https://github.com/curl/curl/pull/14625#issuecomment-2302361737 Closes #14640
show more ...
|
c0450488 | 21-Aug-2024 |
Viktor Szakats |
src: fix potential macro confusion in cmake unity builds Sources used `lib/curlx.h` with both `ENABLE_CURLX_PRINTF` set and unset before including it. In a cmake "unity" batch w
src: fix potential macro confusion in cmake unity builds Sources used `lib/curlx.h` with both `ENABLE_CURLX_PRINTF` set and unset before including it. In a cmake "unity" batch where the first included source had it unset, the next sources did not get the macros requested with `ENABLE_CURLX_PRINTF` because `lib/curl.x` had already been included without them. Fix it by by making the macros enabled permanently and globally for internal sources, and dropping `ENABLE_CURLX_PRINTF`. This came up while testing unity builds with smaller batches. The full, default unity build where all `src` is bundled up in a single unit, was not affected. Fixes: ``` $ cmake -B build -DCMAKE_UNITY_BUILD=ON -DCMAKE_UNITY_BUILD_BATCH_SIZE=15 $ make -C build ... curl/src/tool_getparam.c: In function ‘getparameter’: curl/src/tool_getparam.c:2409:11: error: implicit declaration of function ‘msnprintf’; did you mean ‘vsnprintf’? [-Wimplicit-function-declaration] 2409 | msnprintf(buffer, sizeof(buffer), "%" CURL_FORMAT_CURL_OFF_T "-", | ^~~~~~~~~ | vsnprintf curl/src/tool_getparam.c:2409:11: warning: nested extern declaration of ‘msnprintf’ [-Wnested-externs] [...] ``` Reported-by: Daniel Stenberg Bug: https://github.com/curl/curl/pull/14626#issuecomment-2301663491 Closes #14632
show more ...
|
6292a332 | 22-Aug-2024 |
Daniel Stenberg |
RELEASE-NOTES: synced |
b000cdfb | 21-Aug-2024 |
Daniel Stenberg |
CURLOPT_XFERINFOFUNCTION: clarify the callback return codes also done in CURLOPT_PROGRESSFUNCTION.md This changes the wording to say that 1 should be returned instad of non-zero
CURLOPT_XFERINFOFUNCTION: clarify the callback return codes also done in CURLOPT_PROGRESSFUNCTION.md This changes the wording to say that 1 should be returned instad of non-zero to return error from the callback. I did this to simplify, even if other non-zero values still do the same thing I figure we might just as well just leave out the others from the documentation. Fixes #14627 Reported-by: Benjamin Riefenstahl Mecom Closes #14637
show more ...
|
97245264 | 21-Aug-2024 |
Viktor Szakats |
lib: delete stray undefs for `vsnprintf`, `vsprintf` Stop #undefining macros that were not redefined or used in the code. Closes #14631 |
b3e1fe6d | 21-Aug-2024 |
Viktor Szakats |
cmake: tidy up option descriptions - capitalize. - impartive voice. - stick to `Build ...`, `Use ...`, `Enable ...`, `Disable ...` with a couple of exceptions. - drop perio
cmake: tidy up option descriptions - capitalize. - impartive voice. - stick to `Build ...`, `Use ...`, `Enable ...`, `Disable ...` with a couple of exceptions. - drop period. - fix wolfSSH, WebSockets casing. Closes #14636
show more ...
|
a62e3be6 | 21-Aug-2024 |
Viktor Szakats |
cmake: honor custom `CMAKE_UNITY_BUILD_BATCH_SIZE` This value tells how many sources files to bundle in a single "unity" compilation unit. The CMake default is 8 sources, curl's
cmake: honor custom `CMAKE_UNITY_BUILD_BATCH_SIZE` This value tells how many sources files to bundle in a single "unity" compilation unit. The CMake default is 8 sources, curl's CMake set this to 0, meaning to bundle all sources into a single unit. This patch makes it possible to override the 0 value, and potentially optimize the build process further by better utilizing multiple cores in conjunction with `make -jN`. The number of sources in lib is 172 at the time of writing this. For a 12-core CPU, this can give a job for them all: `-DCMAKE_UNITY_BUILD_BATCH_SIZE=15` (Compile time may be affected by a bunch of other factors.) Closes #14626
show more ...
|
9fff0742 | 21-Aug-2024 |
Viktor Szakats |
GHA/windows: fix indentation in the MSVC section |
b0b4b481 | 21-Aug-2024 |
Daniel Stenberg |
setopt: allow CURLOPT_INTERFACE to be set to NULL Ref: https://github.com/curl/curl/discussions/14299#discussioncomment-10393909 Regression from 3060557af702dd591 (shipped in 8.9.0)
setopt: allow CURLOPT_INTERFACE to be set to NULL Ref: https://github.com/curl/curl/discussions/14299#discussioncomment-10393909 Regression from 3060557af702dd591 (shipped in 8.9.0) Closes #14629
show more ...
|
3065f106 | 20-Aug-2024 |
Viktor Szakats |
build: add `iphlpapi` lib for libssh on Windows vcpkg doesn't need it because it fixes this with a libssh patch. All other Windows builds need it. (autotools build not tested.)
build: add `iphlpapi` lib for libssh on Windows vcpkg doesn't need it because it fixes this with a libssh patch. All other Windows builds need it. (autotools build not tested.) Closes #14618
show more ...
|
576b39b6 | 20-Aug-2024 |
Viktor Szakats |
cmake: drop libssh CONFIG-style detection Drop `find_package(libssh CONFIG)` detection method in favour of the Find module that supports both `pkg-config`, and CMake-native (since #1
cmake: drop libssh CONFIG-style detection Drop `find_package(libssh CONFIG)` detection method in favour of the Find module that supports both `pkg-config`, and CMake-native (since #14555) detection. This aligns `libssh` detection with other dependencies. It makes the build honor custom configuration via `LIBSSH_INCLUDE_DIR`, `LIBSSH_LIBRARY`. Also enable libssh in a GHA/macos cmake job for build coverage. Fixing: - curl-for-win requiring a hack to configure libssh: https://github.com/curl/curl-for-win/blob/4f9acbed92fd4aac0e874c9a591bec7d621cd9f2/curl.sh#L255-L263 - after #14555, GHA/windows gnutls vcpkg job no longer auto-detected libssh, due to a regression missing to enable libssh when found via `find_package(libssh CONFIG)`. Ref: https://github.com/curl/curl/actions/runs/10470138955/job/28994650338 Follow-up to 422696f0a4f3a9e20d4ba9f12726bb066f1c34fc #14555 Closes #14614
show more ...
|
77839133 | 21-Aug-2024 |
Jay Satiro |
unit1300: fix checksrc longline warnings Closes https://github.com/curl/curl/pull/14624 |