25cbc2f7 | 11-May-2024 |
Viktor Szakats |
tests: make the unit test result type `CURLcode` Before this patch, the result code was a mixture of `int` and `CURLcode`. Also adjust casts and fix a couple of minor issues fou
tests: make the unit test result type `CURLcode` Before this patch, the result code was a mixture of `int` and `CURLcode`. Also adjust casts and fix a couple of minor issues found along the way. Cherry-picked from #13489 Closes #13600
show more ...
|
dad03dc5 | 11-May-2024 |
Viktor Szakats |
appveyor: tidy-ups - delete a duplicate line. - simplify a `make` call. - merge two `if` branches. - reorder autotools options for clarity. - add `--enable-warnings` where mi
appveyor: tidy-ups - delete a duplicate line. - simplify a `make` call. - merge two `if` branches. - reorder autotools options for clarity. - add `--enable-warnings` where missing (it's also the default.) - add empty lines to YAML for readability. - use lowercase install prefix/directory. Closes #13598
show more ...
|
7d8d2517 | 10-May-2024 |
Daniel Stenberg |
docs/cmdline-opts: mention STARTTLS for --ssl and --ssl-reqd ... since users might look for those terms in the manpage. Closes #13590 |
efe93019 | 10-May-2024 |
Daniel Stenberg |
setopt: warn on Curl_set*opt() uses not using the return value And switch the invokes that would "set" NULL to instead just plainly free the pointer, as those were otherwise the invokes
setopt: warn on Curl_set*opt() uses not using the return value And switch the invokes that would "set" NULL to instead just plainly free the pointer, as those were otherwise the invokes that would ignore the return code. And possibly confuse static code analyzers. Closes #13591
show more ...
|
c8925f3e | 12-May-2024 |
Orgad Shaneh |
autotools: delete unused functions Closes #13605 |
5b9955e0 | 27-Apr-2024 |
Viktor Szakats |
examples: fix/silence `-Wsign-conversion` - extend `FD_SET()` hack to all platforms (was only Cygwin). Warnings may also happen in other envs, e.g. OmniOS. Ref: https://github.co
examples: fix/silence `-Wsign-conversion` - extend `FD_SET()` hack to all platforms (was only Cygwin). Warnings may also happen in other envs, e.g. OmniOS. Ref: https://github.com/libssh2/libssh2/actions/runs/8854199687/job/24316762831#step:3:2021 - tidy-up `CURLcode` vs `int` use. - cast an unsigned to `long` before passing to `curl_easy_setopt()`. Cherry-picked from #13489 Follow-up to 3829759bd042c03225ae862062560f568ba1a231 #12489 Closes #13501
show more ...
|
7ca0a379 | 10-May-2024 |
Orgad Shaneh |
cmake: fix `HAVE_IOCTLSOCKET_FIONBIO` test with gcc 14 The function signature has had u_long flags since ever. This is how it is defined in the documentation, and implemented in MinGW.
cmake: fix `HAVE_IOCTLSOCKET_FIONBIO` test with gcc 14 The function signature has had u_long flags since ever. This is how it is defined in the documentation, and implemented in MinGW. The code that uses ioctlsocket in nonblock.c also has unsigned long. Error: CurlTests.c:275:41: error: passing argument 3 of 'ioctlsocket' from incompatible pointer type [-Wincompatible-pointer-types] 275 | if(0 != ioctlsocket(0, FIONBIO, &flags)) | ^~~~~~ | | | int * In file included from CurlTests.c:266: /opt/mxe/usr/i686-w64-mingw32.static/include/winsock2.h:1007:76: note: expected 'u_long *' {aka 'long unsigned int *'} but argument is of type 'int *' 1007 | WINSOCK_API_LINKAGE int WSAAPI ioctlsocket(SOCKET s,__LONG32 cmd,u_long *argp); | ~~~~~~~~^~~~ Closes #13578
show more ...
|
3a564fec | 10-May-2024 |
Jay Satiro |
ftp: fix build for CURL_DISABLE_VERBOSE_STRINGS This is a follow-up to b7c7dffe which changed the FTP state change verbose debug text (aka infof) to tracing debug text (aka trc).
ftp: fix build for CURL_DISABLE_VERBOSE_STRINGS This is a follow-up to b7c7dffe which changed the FTP state change verbose debug text (aka infof) to tracing debug text (aka trc). Prior to this change if libcurl was without DEBUGBUILD and built with CURL_DISABLE_VERBOSE_STRINGS (ie --disable-verbose) the build would error. Caught by Circle CI job openssl-no-verbose.
show more ...
|
798a37b2 | 10-May-2024 |
Jay Satiro |
lib: clear the easy handle's saved errno before transfer - Clear data->state.os_errno before transfer. - Explain the change in behavior in the CURLINFO_OS_ERRNO doc. - Add
lib: clear the easy handle's saved errno before transfer - Clear data->state.os_errno before transfer. - Explain the change in behavior in the CURLINFO_OS_ERRNO doc. - Add to the CURLINFO_OS_ERRNO doc the list of libcurl network-related errors that may cause the errno to be saved. data->state.os_errno is saved before libcurl returns a network-related failure such as connection failure. It is accessible to the user via CURLINFO_OS_ERRNO so they can get more information about the failure. Prior to this change it wasn't cleared before transfer, so if a user retrieved the saved errno it could be from a previous transfer. That is because an errno is not always saved for network-related errors. Closes https://github.com/curl/curl/pull/13574
show more ...
|
b7c7dffe | 10-May-2024 |
Stefan Eissing |
ftp: add tracing support - add `Curl_trc_feat_ftp` for tracing via trace config - add macro CURL_TRC_FTP(data, fmt, ...) - replace DEBUGF(infof()) statements in ftp.c by CURL_TRC_FTP
ftp: add tracing support - add `Curl_trc_feat_ftp` for tracing via trace config - add macro CURL_TRC_FTP(data, fmt, ...) - replace DEBUGF(infof()) statements in ftp.c by CURL_TRC_FTP() - always trace FTP connection state Closes #13580
show more ...
|
7b5bacdd | 10-May-2024 |
Daniel Stenberg |
http: remove redundant check Spotted by CodeSonar Closes #13582 |
e0866dd0 | 10-May-2024 |
Viktor Szakats |
ldap: fix unused variables (seen on OmniOS) ``` ../../lib/ldap.c: In function 'ldap_do': ../../lib/ldap.c:380:11: error: unused variable 'ldap_ca' [-Werror=unused-variable]
ldap: fix unused variables (seen on OmniOS) ``` ../../lib/ldap.c: In function 'ldap_do': ../../lib/ldap.c:380:11: error: unused variable 'ldap_ca' [-Werror=unused-variable] 380 | char *ldap_ca = conn->ssl_config.CAfile; | ^~~~~~~ ../../lib/ldap.c:379:9: error: unused variable 'ldap_option' [-Werror=unused-variable] 379 | int ldap_option; | ^~~~~~~~~~~ ``` Ref: https://github.com/curl/curl/actions/runs/9033564377/job/24824192730#step:3:6059 Ref: #13583 Closes #13588
show more ...
|
0e37b42d | 10-May-2024 |
Daniel Stenberg |
url: make parse_login_details use memdup0 Also make the user and password arguments mandatory, since all code paths in libcurl used them anyway. Adapted unit test case 1620 to t
url: make parse_login_details use memdup0 Also make the user and password arguments mandatory, since all code paths in libcurl used them anyway. Adapted unit test case 1620 to the new rules. Closes #13584
show more ...
|
fa9a5649 | 10-May-2024 |
Orgad Shaneh |
digest: replace strcpy for empty string with simple assignment Closes #13586 |
b65f0e04 | 10-May-2024 |
Viktor Szakats |
autotools: fix `HAVE_IOCTLSOCKET_FIONBIO` test for gcc 14 ``` conftest.c:152:41: error: passing argument 3 of 'ioctlsocket' from incompatible pointer type [-Wincompatible-pointer-types]
autotools: fix `HAVE_IOCTLSOCKET_FIONBIO` test for gcc 14 ``` conftest.c:152:41: error: passing argument 3 of 'ioctlsocket' from incompatible pointer type [-Wincompatible-pointer-types] 152 | if(0 != ioctlsocket(0, FIONBIO, &flags)) | ^~~~~~ | | | int * ``` Reported-by: LigH Fixes #13579 Closes #13587
show more ...
|
2725488b | 10-May-2024 |
Viktor Szakats |
CI: ignore test 286 on Appveyor gcc 7 build Disabled earlier for gcc 9 builds. gcc 7 uses the same runner and prone to similar intermittent failures. Follow-up to f1e05a6e6e7225
CI: ignore test 286 on Appveyor gcc 7 build Disabled earlier for gcc 9 builds. gcc 7 uses the same runner and prone to similar intermittent failures. Follow-up to f1e05a6e6e7225fa09952abb2c935ae1abe44f45 #12106 #12040 Closes #13575
show more ...
|
4d38cea9 | 10-May-2024 |
Daniel Stenberg |
cf-socket: don't try getting local IP without socket In cf_tcp_connect(), it might fail and not get a socket assigned to ctx->sock but set_local_ip() is still called which would make
cf-socket: don't try getting local IP without socket In cf_tcp_connect(), it might fail and not get a socket assigned to ctx->sock but set_local_ip() is still called which would make getsockname() get invoked with a negative file desriptor and fail. By adding this check, set_local_ip() will now instead blank out the fields correctly. Spotted by CodeSonar Closes #13577
show more ...
|
cabbb9b2 | 10-May-2024 |
Daniel Stenberg |
tool_getparam: remove two redundant conditions When getstr() does not return error, it returns a valid pointer. Spotted by CodeSonar Closes #13576 |
2036bebb | 10-May-2024 |
Stefan Eissing |
quiche: trust its timeout handling - set the idle timeout transport parameter in milliseconds as documented by quiche - do not calculate the idle timeout, rely on quiche hand
quiche: trust its timeout handling - set the idle timeout transport parameter in milliseconds as documented by quiche - do not calculate the idle timeout, rely on quiche handling it Closes #13581
show more ...
|
bc5261a1 | 10-May-2024 |
Daniel Stenberg |
dmaketgz: accept a SOURCE_DATE_EPOCH as an second argument to make it easier to reproduce a tarball Closes #13573 |
6e6be487 | 10-May-2024 |
Daniel Stenberg |
RELEASE-NOTES: synced |
bc6e3e60 | 08-May-2024 |
Stefan Eissing |
h3/ngtcp2: improve error handling - identify ngtcp2 and nghttp3 error codes that are fatal - close quic connection on fatal errors - refuse further filter operations once connection
h3/ngtcp2: improve error handling - identify ngtcp2 and nghttp3 error codes that are fatal - close quic connection on fatal errors - refuse further filter operations once connection is closed - confusion about the nghttp3 API. We should close the QUIC stream on cancel and not use the nghttp3 calls intended to be invoked when the QUIC stream was closed by the peer. Closes #13562
show more ...
|
edc5b350 | 08-May-2024 |
Jay Satiro |
docs: fix some CURLINFO examples - improve getinfo result check for example sections: CURLINFO_ACTIVESOCKET, CURLINFO_LASTSOCKET, CURLINFO_SSL_VERIFYRESULT, CURLINFO_PROXY_SSL_VE
docs: fix some CURLINFO examples - improve getinfo result check for example sections: CURLINFO_ACTIVESOCKET, CURLINFO_LASTSOCKET, CURLINFO_SSL_VERIFYRESULT, CURLINFO_PROXY_SSL_VERIFYRESULT - fix getinfo result check for example sections: CURLINFO_NUM_CONNECTS, CURLINFO_OS_ERRNO - fix verify result check for example sections: CURLINFO_PROXY_SSL_VERIFYRESULT Bug: https://github.com/curl/curl/discussions/13557#discussion-6625507 Reported-by: farazrbx@users.noreply.github.com Closes https://github.com/curl/curl/pull/13559
show more ...
|
3b4b6bd1 | 09-May-2024 |
Daniel Stenberg |
KNOWN_BUGS: gssapi library name + version is missing in curl_version_info() Closes #13492 Closes #13570 |
0f4c439f | 08-May-2024 |
Daniel Stenberg |
krb5: use dynbuf Closes #13568 |