24694cb3 | 19-Jul-2022 |
Daniel Stenberg |
curl-confopts: remove leftover AC_REQUIREs configure.ac:3488: warning: CURL_CHECK_FUNC_IOCTL is m4_require'd but not m4_defun'd configure.ac:3488: warning: CURL_CHECK_FUNC_SETSOCKOPT is
curl-confopts: remove leftover AC_REQUIREs configure.ac:3488: warning: CURL_CHECK_FUNC_IOCTL is m4_require'd but not m4_defun'd configure.ac:3488: warning: CURL_CHECK_FUNC_SETSOCKOPT is m4_require'd but not m4_defun'd follow-up from 4d73854462f30 Closes #9183
show more ...
|
c61e6de7 | 19-Jul-2022 |
Daniel Stenberg |
file: fix icc enumerated type mixed with another type warning Ref: #9179 Closes #9181 |
4d738544 | 19-Jul-2022 |
Viktor Szakats |
tidy-up: delete unused build configuration macros Most of them feature guards: - `CURL_INCLUDES_SYS_UIO` [1] - `HAVE_ALLOCA_H` [2] - `HAVE_CRYPTO_CLEANUP_ALL_EX_DATA` (unuse
tidy-up: delete unused build configuration macros Most of them feature guards: - `CURL_INCLUDES_SYS_UIO` [1] - `HAVE_ALLOCA_H` [2] - `HAVE_CRYPTO_CLEANUP_ALL_EX_DATA` (unused since de71e68000c8624ea13f90b136f8734dd0fb1bdc) - `HAVE_DLFCN_H` - `HAVE_DLOPEN` - `HAVE_DOPRNT` - `HAVE_FCNTL` - `HAVE_GETHOSTBYNAME` [3] - `HAVE_GETOPT_H` - `HAVE_GETPASS` - `HAVE_GETPROTOBYNAME` - `HAVE_GETSERVBYNAME` - `HAVE_IDN_FREE*` - `HAVE_INET_ADDR` - `HAVE_IOCTL` - `HAVE_KRB4` - `HAVE_KRB_GET_OUR_IP_FOR_REALM` - `HAVE_KRB_H` - `HAVE_LDAPSSL_H` - `HAVE_LDAP_INIT_FD` - `HAVE_LIBDL` - `HAVE_LIBNSL` - `HAVE_LIBRESOLV*` - `HAVE_LIBUCB` - `HAVE_LL` - `HAVE_LOCALTIME_R` - `HAVE_MALLOC_H` - `HAVE_MEMCPY` - `HAVE_MEMORY_H` - `HAVE_NETINET_IF_ETHER_H` - `HAVE_NI_WITHSCOPEID` - `HAVE_OPENSSL_CRYPTO_H` - `HAVE_OPENSSL_ERR_H` - `HAVE_OPENSSL_PEM_H` - `HAVE_OPENSSL_PKCS12_H` - `HAVE_OPENSSL_RAND_H` - `HAVE_OPENSSL_RSA_H` - `HAVE_OPENSSL_SSL_H` - `HAVE_OPENSSL_X509_H` - `HAVE_PEM_H` - `HAVE_POLL` - `HAVE_RAND_SCREEN` - `HAVE_RAND_STATUS` - `HAVE_RECVFROM` - `HAVE_SETSOCKOPT` - `HAVE_SETVBUF` - `HAVE_SIZEOF_LONG_DOUBLE` - `HAVE_SOCKIO_H` - `HAVE_SOCK_OPTS` - `HAVE_STDIO_H` - `HAVE_STRCASESTR` - `HAVE_STRFTIME` - `HAVE_STRLCAT` - `HAVE_STRNCMPI` - `HAVE_STRNICMP` - `HAVE_STRSTR` - `HAVE_STRUCT_IN6_ADDR` - `HAVE_TLD_H` - `HAVE_TLD_STRERROR` - `HAVE_UNAME` - `HAVE_USLEEP` - `HAVE_WINBER_H` - `HAVE_WRITEV` - `HAVE_X509_H` - `LT_OBJDIR` - `NEED_BASENAME_PROTO` - `NOT_NEED_LIBNSL` - `OPENSSL_NO_KRB5` - `RECVFROM_TYPE*` - `SIZEOF_LONG_DOUBLE` - `STRERROR_R_TYPE_ARG3` - `USE_YASSLEMUL` - `_USRDLL` (from CMake) [4] [1] Related parts in `m4/curl-functions.m4` and `configure.ac` might also be deleted. [2] Related comment can possibly be deleted in `packages/vms/generate_config_vms_h_curl.com`. [3] There are more instances of this in autotools, but I did not dare to touch those. Looked like it's used to detect socket support. [4] This is necessary for MFC (Microsoft Foundation Class) DLLs to force linking MFC components statically to the DLL. `libcurl.dll` does not use MFC, so we can delete this define. Ref: https://docs.microsoft.com/cpp/build/regular-dlls-statically-linked-to-mfc Script that can help finding unused settings like above: ```shell autoheader configure.ac # generate lib/curl_config.h.in { grep -o -E 'set\([A-Z][A-Z0-9_]{3,}' CMake/Platforms/WindowsCache.cmake | sed -E 's|set\(||g' grep -o -E -h '#define +[A-Z][A-Z0-9_]{3,}' lib/config-*.h | sed -E 's|#define +||g' grep -o -E '#cmakedefine +[A-Z][A-Z0-9_]{3,}' lib/curl_config.h.cmake | sed -E 's|#cmakedefine +||g' grep -o -E '#undef +[A-Z][A-Z0-9_]{3,}' lib/curl_config.h.in | sed -E 's|#undef +||g' } | sort -u | grep -v -F 'HEADER_CURL_' | while read -r def; do c="$(git grep -w -F "${def}" | grep -v -E -c '(/libcurl\.tmpl|^lib/config-|^lib/curl_config\.h\.cmake|^CMakeLists\.txt|^CMake/Platforms/WindowsCache\.cmake|^packages/vms/config_h\.com|^m4/curl-functions\.m4|^acinclude\.m4|^configure\.ac)')" if [ "${c}" = '0' ]; then echo "${def}" fi done ``` Reviewed-by: Daniel Stenberg Closes #9044
show more ...
|
6e83e27f | 19-Jul-2022 |
Daniel Stenberg |
RELEASE-NOTES: synced |
4c0ac2aa | 18-Jul-2022 |
Daniel Stenberg |
cookie: treat a blank domain in Set-Cookie: as non-existing This matches what RFC 6265 section 5.2.3 says. Extended test 31 to verify. Fixes #9164 Reported-by: Gwen Sha
cookie: treat a blank domain in Set-Cookie: as non-existing This matches what RFC 6265 section 5.2.3 says. Extended test 31 to verify. Fixes #9164 Reported-by: Gwen Shapira Closes #9177
show more ...
|
c2e72c78 | 12-Jul-2022 |
Patrick Monnerat |
base64: base64url encoding has no padding See RFC4648 section 5 and RFC7540 section 3.2.1. Suppress generation of '=' padding of base64url encoding. This is accomplished by cons
base64: base64url encoding has no padding See RFC4648 section 5 and RFC7540 section 3.2.1. Suppress generation of '=' padding of base64url encoding. This is accomplished by considering the string beginning at offset 64 in the character table as the padding: this is "=" for base64, "" for base64url. Also use strchr() to replace character search loops where possible. Suppress erroneous comments about empty encoding results. Adjust unit test 1302 to unpadded base64url encoding and add tests for empty results. Closes #9139
show more ...
|
dfe5a302 | 18-Jul-2022 |
Daniel Stenberg |
easyoptions: fix icc warning easyoptions.c(360): error #188: enumerated type mixed with another type Ref: #9156 Reported-by: Matthew Thompson Closes #9176 |
b9b6148c | 17-Jul-2022 |
lwthiker |
h2h3: fix overriding the 'TE: Trailers' header A 'TE: Trailers' header is explicitly replaced by 'te: trailers' (lowercase) in Curl_pseudo_headers() when building the list of HTTP/2 or
h2h3: fix overriding the 'TE: Trailers' header A 'TE: Trailers' header is explicitly replaced by 'te: trailers' (lowercase) in Curl_pseudo_headers() when building the list of HTTP/2 or HTTP/3 headers. However, this is then replaced again by the original value due to a bug, resulting in the uppercased version being sent. Some HTTP/2 servers reject the whole HTTP/2 stream when this is the case. Closes #9170
show more ...
|
04841278 | 17-Jul-2022 |
Daniel Stenberg |
lib3026: reduce the number of threads to 100 Down from 1000, to make it run and work in more systems. Fixes #9172 Reported-by: Érico Nogueira Rolim Closes #9173 |
fe93bb4d | 17-Jul-2022 |
Daniel Stenberg |
doh: move doh related struct definitions to doh.h and make 'dnstype' in 'struct dnsprobe' use the DNStype to fix the icc compiler warning: doh.c(924): error #188: enumerated type
doh: move doh related struct definitions to doh.h and make 'dnstype' in 'struct dnsprobe' use the DNStype to fix the icc compiler warning: doh.c(924): error #188: enumerated type mixed with another type Reported-by: Matthew Thompson Ref #9156 Closes #9174
show more ...
|
f9ff59eb | 17-Jul-2022 |
Viktor Szakats |
Makefile.m32: stop trying to build libcares.a [ci skip] Before this patch, `lib/Makefile.m32` had a rule to build `libcares.a` in `-cares`-enabled builds, via c-ares's own `Makefile.m32`
Makefile.m32: stop trying to build libcares.a [ci skip] Before this patch, `lib/Makefile.m32` had a rule to build `libcares.a` in `-cares`-enabled builds, via c-ares's own `Makefile.m32`. Committed in 2007 [1]. The commit message doesn't specifically address this particular change. This logic comes from the times when c-ares was part of the curl source tree, hence the special treatment. This feature creates problems when building c-ares first, using CMake and pointing `LIBCARES_PATH` to its install prefix, where `Makefile.m32` is missing in such case. A sub-build for c-ares is undesired also when c-ares had already been build via its own `Makefile.m32`. To avoid the sub-build, this patch deletes its Makefile rule. After this patch `libcares.a` needs to be manually built before using it in `Makefile.m32`. Aligning it with the rest of dependencies. [1] 46c92c0b806da041d7a5c6fb64dbcdc474d99b31 Reviewed-by: Daniel Stenberg Closes #9169
show more ...
|
0ef4f087 | 13-Jul-2022 |
Daniel Stenberg |
curl: writeout: fix repeated header outputs The function stored a terminating zero into the buffer for convenience, but when on repeated calls that would cause problems. Starting now, th
curl: writeout: fix repeated header outputs The function stored a terminating zero into the buffer for convenience, but when on repeated calls that would cause problems. Starting now, the passed in buffer is not modified. Reported-by: highmtworks on github Fixes #9150 Closes #9152
show more ...
|
a88dbe41 | 14-Jul-2022 |
Daniel Stenberg |
curl_multi_timeout.3: clarify usage Fixes #9155 Closes #9157 Reported-by: jvvprasad78 on github |
0e48ac1f | 13-Jul-2022 |
Daniel Stenberg |
mprintf: make dprintf_formatf never return negative This function no longer returns a negative value if the formatting string is bad since the return value would sometimes be propagated
mprintf: make dprintf_formatf never return negative This function no longer returns a negative value if the formatting string is bad since the return value would sometimes be propagated as a return code from the mprintf* functions and they are documented to return the length of the output. Which cannot be negative. Fixes #9149 Closes #9151 Reported-by: yiyuaner on github
show more ...
|
8d06af10 | 17-Jul-2022 |
Viktor Szakats |
trace: 0x7F character is non-printable `0x7F` is `DEL`, a non-printable symbol, so print it as `UNPRINTABLE_CHAR`. Reported-by: MasterInQuestion on github Fixes #9162 Cl
trace: 0x7F character is non-printable `0x7F` is `DEL`, a non-printable symbol, so print it as `UNPRINTABLE_CHAR`. Reported-by: MasterInQuestion on github Fixes #9162 Closes #9166
show more ...
|
a19f0601 | 16-Jul-2022 |
Viktor Szakats |
doh: use https protocol by default The only allowed protocol is https, so it makes sense to use that by default if not passed explicitly by the user. Reported-by: MasterInQuesti
doh: use https protocol by default The only allowed protocol is https, so it makes sense to use that by default if not passed explicitly by the user. Reported-by: MasterInQuestion on github Reviewed-by: Jay Satiro Fixes #9163 Closes #9165
show more ...
|
4c46c829 | 14-Jul-2022 |
Viktor Szakats |
openssl: fix BoringSSL symbol conflicts with LDAP and Schannel Same issue as here [1], but this time when building curl with BoringSSL for Windows with LDAP(S) or Schannel support enable
openssl: fix BoringSSL symbol conflicts with LDAP and Schannel Same issue as here [1], but this time when building curl with BoringSSL for Windows with LDAP(S) or Schannel support enabled. Apply the same fix [2] for these source files as well. This can also be fixed by moving `#include "urldata.h"` _before_ including `winldap.h` and `schnlsp.h` respectively. This seems like a cleaner fix, though I'm not sure why it works and if it has any downside. [1] https://github.com/curl/curl/issues/5669 [2] https://github.com/curl/curl/commit/fbe07c6829ba8c5793c84c2856526e19e9029ab9 Co-authored-by: Jay Satiro Closes #9110
show more ...
|
451bcc1a | 12-Jul-2022 |
Daniel Stenberg |
asyn-thread: make getaddrinfo_complete return CURLcode ... as the only caller that cares about what it returns assumes that anyway. This caused icc to warn: asyn-thread.c(505):
asyn-thread: make getaddrinfo_complete return CURLcode ... as the only caller that cares about what it returns assumes that anyway. This caused icc to warn: asyn-thread.c(505): error #188: enumerated type mixed with another type result = getaddrinfo_complete(data); Repoorted-by: Matthew Thompson Bug: https://github.com/curl/curl/issues/9081#issuecomment-1182143076 Closes #9146
show more ...
|
e0c68f02 | 12-Jul-2022 |
Daniel Stenberg |
easy_lock: fix build with icc The Intel compiler tries to look like GCC *and* clang *and* it lies in its __has_builtin() function (returns true when it should return false), so overr
easy_lock: fix build with icc The Intel compiler tries to look like GCC *and* clang *and* it lies in its __has_builtin() function (returns true when it should return false), so override it. Reported-by: Matthew Thompson Fixes #9081 Closes #9144
show more ...
|
60be90d1 | 12-Jul-2022 |
Daniel Stenberg |
configure: fix --disable-headers-api Reported-by: Michał Antoniak Fixes #9134 Closes #9143 |
945a81e1 | 12-Jul-2022 |
Daniel Stenberg |
test3026: require 'threadsafe' Reported-by: Sukanya Hanumanthu Fixes #9141 Closes #9142 |
05256142 | 08-Jul-2022 |
Even Rouault |
CMake: link curl to its dependencies with PRIVATE The current PUBLIC visibility causes issues for downstream users. Cf https://github.com/OSGeo/PROJ/pull/3172#issuecomment-1157942986
CMake: link curl to its dependencies with PRIVATE The current PUBLIC visibility causes issues for downstream users. Cf https://github.com/OSGeo/PROJ/pull/3172#issuecomment-1157942986 Reviewed-by: Jakub Zakrzewski Closes #9125
show more ...
|
7ac36075 | 08-Jul-2022 |
Even Rouault |
CMake: remove APPEND in export(TARGETS) When running cmake several times, new content was appended to already existing generated files, which is not appropriate Reviewed-by: Jak
CMake: remove APPEND in export(TARGETS) When running cmake several times, new content was appended to already existing generated files, which is not appropriate Reviewed-by: Jakub Zakrzewski Closes #9124
show more ...
|
e9a2eced | 09-Jul-2022 |
Tatsuhiro Tsujikawa |
ngtcp2: implement cb_h3_stop_sending and cb_h3_reset_stream callbacks Closes #9135 |
72516ba1 | 11-Jul-2022 |
Daniel Stenberg |
RELEASE-NOTES: synced |