summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fixup use the old style for h1...bagder/hyper-h2Daniel Stenberg2021-10-081-11/+16
| | | | As otherwise hyper will use absolute paths (full URLs) in the GET
* c-hyper: use hyper_request_set_uri_parts to make h2 betterDaniel Stenberg2021-10-081-5/+25
| | | | | | | and make sure to not send Host: over h2. Fixes #7679 Reported-by: David Cook
* curl-openssl.m4: modify library order for openssl linkingMichael Afanasiev2021-10-081-2/+2
| | | | | | | | lcrypto may depend on lz, and configure corrently fails with when statically linking as the order is "-lz -lcrypto". This commit switches the order to "-lcrypto -lz". Closes #7826
* sha256: use high-level EVP interface for OpenSSLMarcel Raad2021-10-071-41/+70
| | | | | | | Available since OpenSSL 0.9.7. The low-level SHA256 interface is deprecated in OpenSSL v3, and its usage was discouraged even before. Closes https://github.com/curl/curl/pull/7808
* curl_ntlm_core: use OpenSSL only if DES is availableMarcel Raad2021-10-071-5/+12
| | | | | | | This selects another SSL backend then if available, or otherwise at least gives a meaningful error message. Closes https://github.com/curl/curl/pull/7808
* md5: fix compilation with OpenSSL 3.0 APIMarcel Raad2021-10-071-7/+15
| | | | | | | | | | Only use OpenSSL's MD5 code if it's available. Also fix wolfSSL build with `NO_MD5`, in which case neither the wolfSSL/OpenSSL implementation nor the fallback implementation was used. Closes https://github.com/curl/curl/pull/7808
* print_category: printf %*s needs an int argumentDaniel Stenberg2021-10-071-1/+1
| | | | | | | ... not a size_t! Detected by Coverity: CID 1492331. Closes #7823
* version_win32: use actual version instead of manifested versionJay Satiro2021-10-073-5/+50
| | | | | | | | | | | | | | | | | | - Use RtlVerifyVersionInfo instead of VerifyVersionInfo, when possible. Later versions of Windows have normal version functions that compare and return versions based on the way the application is manifested, instead of the actual version of Windows the application is running on. We prefer the actual version of Windows so we'll now call the Rtl variant of version functions (RtlVerifyVersionInfo) which does a proper comparison of the actual version. Reported-by: Wyatt O'Day Ref: https://github.com/curl/curl/pull/7727 Fixes https://github.com/curl/curl/issues/7742 Closes https://github.com/curl/curl/pull/7810
* RELEASE-NOTES: syncedDaniel Stenberg2021-10-061-10/+29
|
* http: fix Basic auth with empty name field in URLDaniel Stenberg2021-10-063-2/+50
| | | | | | | | Add test 367 to verify. Reported-by: Rick Lane Fixes #7819 Closes #7820
* CURLOPT_MAXLIFETIME_CONN: maximum allowed lifetime for conn reuseJeffrey Tolar2021-10-0616-12/+272
| | | | | | | | | ... and close connections that are too old instead of reusing them. By default, this behavior is disabled. Bug: https://curl.se/mail/lib-2021-09/0058.html Closes #7751
* docs/examples: add missing binaries to gitignoreDaniel Gustafsson2021-10-061-0/+2
| | | | | | | | Commit f65d7889b added getreferrer, and commit ae8e11ed5 multi-legacy, both of which missed adding .gitignore clauses for the built binaries. Closes #7817 Reviewed-by: Daniel Stenberg <daniel@haxx.se>
* HTTP3: fix the HTTP/3 Explained book linkJosip Medved2021-10-051-1/+1
| | | | Closes #7813
* misc: fix a few issues on MidnightBSDLucas Holt2021-10-055-7/+13
| | | | Closes #7812
* tool_main: fix typo in comment8U61ife2021-10-041-1/+1
| | | | | Closes: #7811 Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
* BINDINGS: URL updatesRyan Mast2021-10-041-7/+7
| | | | | | For cpr, BBHTTP, Eiffel, Harbour, Haskell, Mono, and Rust Closes #7809
* scripts/delta: hide a git error message we don't care aboutDaniel Stenberg2021-10-021-1/+1
| | | | fatal: path 'src/tool_listhelp.c' exists on disk, but not in [tag]
* sasl: binary messagesPatrick Monnerat2021-10-026-230/+304
| | | | | | | | | | Capabilities of sasl module are extended to exchange messages in binary as an alternative to base64. If http authentication flags have been set, those are used as sasl default preferred mechanisms. Closes #6930
* wolfssl: use for SHA256, MD4, MD5, and setting DES odd parityHayden Roche2021-10-025-7/+37
| | | | | | | | Prior to this commit, OpenSSL could be used for all these functions, but not wolfSSL. This commit makes it so wolfSSL will be used if USE_WOLFSSL is defined. Closes #7806
* scripts/delta: count command line options in the new fileDaniel Stenberg2021-10-011-2/+2
| | | | ... which makes the shown delta number wrong until next release.
* RELEASE-NOTES: syncedDaniel Stenberg2021-10-011-5/+24
|
* print_category: print help descriptions alignedDaniel Stenberg2021-10-014-19/+36
| | | | | | | | Adjust the description position to make an aligned column when doing help listings, which is more pleasing to the eye. Suggested-by: Gisle Vanem Closes #7792
* lib/mk-ca-bundle.pl: skip certs passed Not Valid After dateDaniel Stenberg2021-09-301-2/+18
| | | | | | | | | With this change applied, the now expired 'DST Root CA X3' cert will no longer be included in the output. Details: https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/ Closes #7801
* tool_listhelp: easier to generate with gen.plDaniel Stenberg2021-09-309-790/+862
| | | | | | | | | | | | | | | tool_listhelp.c is now a separate file with only the command line --help output, exactly as generated by gen.pl. This makes it easier to generate updates according to what's in the docs/cmdline-opts docs. cd $srcroot/docs/cmdline-opts ./gen.pl listhelp *.d > $srcroot/src/tool_listhelp.c With a configure build, this also works: make -C src listhelp Closes #7787
* wolfssl: allow setting of groups/curvesAnthony Hu2021-09-301-1/+70
| | | | | | | In particular, the quantum safe KEM and hybrid curves if wolfSSL is built to support them. Closes #7728
* connnect: use sysaddr_un fron sys/un.h or custom-defined for windowsJan Mazur2021-09-302-2/+3
| | | | Closes #7737
* hostip: Move allocation to clarify there is no memleakRikard Falkeborn2021-09-301-3/+3
| | | | | | | | | | By just glancing at the code, it looks like there is a memleak if the call to Curl_inet_pton() fails. Looking closer, it is clear that the call to Curl_inet_pton() can not fail, so the code will never leak memory. However, we can make this obvious by moving the allocation after the if-statement. Closes https://github.com/curl/curl/pull/7796
* gen.pl: make the output date format work betterDaniel Stenberg2021-09-301-1/+1
| | | | | | | | | | | Follow-up to 15910dfd143dd The previous strftime format used didn't work correctly on Windows, so change to %B %d %Y which today looks like "September 29 2021". Reported-by: Gisle Vanem Bug: #7782 Closes #7793
* typecheck-gcc.h: add CURLOPT_PREREQDATA awarenessDaniel Stenberg2021-09-301-0/+1
| | | | | | | | Follow-up to a517378de58358a To make test 1912 happy again Closes #7799
* configure: remove `HAVE_WINSOCK_H` definitionMarcel Raad2021-09-293-103/+2
| | | | | | It's not used anymore. Closes https://github.com/curl/curl/pull/7795
* CMake: remove `HAVE_WINSOCK_H` definitionMarcel Raad2021-09-294-25/+0
| | | | | | It's not used anymore. Closes https://github.com/curl/curl/pull/7795
* config: remove `HAVE_WINSOCK_H` definitionMarcel Raad2021-09-296-20/+0
| | | | | | It's not used anymore. Closes https://github.com/curl/curl/pull/7795
* lib: remove `HAVE_WINSOCK_H` usageMarcel Raad2021-09-293-12/+3
| | | | | | | WinSock v1 is not supported anymore. Exclusively use `HAVE_WINSOCK2_H` instead. Closes https://github.com/curl/curl/pull/7795
* easyoptions: add the two new PRE* optionsDaniel Stenberg2021-09-292-1/+3
| | | | | | | | | | Follow-up to a517378de58358a Also fix optiontable.pl to do the correct remainder on the entry. Reported-by: Gisle Vanem Bug: https://github.com/curl/curl/commit/a517378de58358a85b7cfe9efecb56051268f629#commitcomment-57224830 Closes #7791
* Revert "build: remove checks for WinSock 1"Daniel Stenberg2021-09-2916-5/+158
| | | | | | | | Due to CI issues This reverts commit c2ea04f92b00b6271627cb218647527b5a50f2fc. Closes #7790
* lib: avoid fallthrough cases in switch statementsDaniel Gustafsson2021-09-299-65/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit b5a434f7f0ee4d64857f8592eced5b9007d83620 inhibits the warning on implicit fallthrough cases, since the current coding of indicating fallthrough with comments is falling out of fashion with new compilers. This attempts to make the issue smaller by rewriting fallthroughs to no longer fallthrough, via either breaking the cases or turning switch statements into if statements. lib/content_encoding.c: the fallthrough codepath is simply copied into the case as it's a single line. lib/http_ntlm.c: the fallthrough case skips a state in the state- machine and fast-forwards to NTLMSTATE_LAST. Do this before the switch statement instead to set up the states that we actually want. lib/http_proxy.c: the fallthrough is just falling into exiting the switch statement which can be done easily enough in the case. lib/mime.c: switch statement rewritten as if statement. lib/pop3.c: the fallthrough case skips to the next state in the statemachine, do this explicitly instead. lib/urlapi.c: switch statement rewritten as if statement. lib/vssh/wolfssh.c: the fallthrough cases fast-forwards the state machine, do this by running another iteration of the switch statement instead. lib/vtls/gtls.c: switch statement rewritten as if statement. lib/vtls/nss.c: the fallthrough codepath is simply copied into the case as it's a single line. Also twiddle a comment to not be inside a non-brace if statement. Closes: #7322 See-also: #7295 Reviewed-by: Daniel Stenberg <daniel@haxx.se>
* config-win32ce: enable WinSock 2Marcel Raad2021-09-281-2/+2
| | | | | | | | | WinSock 2.2 is supported by Windows CE .NET 4.1 (from 2002, out of support since 2013). Ref: https://docs.microsoft.com/en-us/previous-versions/windows/embedded/ms899586(v=msdn.10) Closes https://github.com/curl/curl/pull/7778
* externalsocket: use WinSock 2.2Marcel Raad2021-09-281-1/+1
| | | | | | That's the only version we support. Closes https://github.com/curl/curl/pull/7778
* build: remove checks for WinSock 1Marcel Raad2021-09-2816-158/+5
| | | | | | It's not supported anymore. Closes https://github.com/curl/curl/pull/7778
* scripts/copyright: .muse is .lift nowDaniel Stenberg2021-09-286-6/+6
| | | | And update 5 files with old copyright year range
* cmdline-opts: made the 'Added:' field mandatoryDaniel Stenberg2021-09-28111-15/+124
| | | | | | | | Since "too old" versions are no longer included in the generated man page, this field is now mandatory so that it won't be forgotten and then not included in the documentation. Closes #7786
* curl.1: remove mentions of really old version changesDaniel Stenberg2021-09-2812-27/+46
| | | | | | | | | | | | | | | | | | | To make the man page more readable, this change removes all references to changes in support/versions etc that happened before 7.30.0 from the curl.1 output file. 7.30.0 was released on Apr 12 2013. This particular limit is a bit arbitrary but was fairly easy to grep for. It is handled like this: the 'Added' keyword is only used in output if it refers to 7.30.0 or later. All occurances of "(Added in $VERSION)" in description will be stripped out if the mentioned $VERSION is from before 7.30.0. It is therefore important that the "Added in..." references are always written exactly like that - and on a single line, not split over two. This change removes about 80 version number references from curl.1, down to 138 from 218. Closes #7786
* RELEASE-NOTES: syncedDaniel Stenberg2021-09-281-10/+23
|
* tool_cb_prg: make resumed upload progress bar show betterDaniel Stenberg2021-09-271-13/+18
| | | | | | | | | This is a regression that was *probably* injected in the larger progress bar overhaul in 2018. Reported-by: beslick5 on github Fixes #7760 Closes #7777
* gen.pl: insert the current date and version in generated man pageDaniel Stenberg2021-09-272-1/+16
| | | | | | Reported-by: Gisle Vanem Ref: #7780 Closes #7782
* NTLM: use DES_set_key_unchecked with OpenSSLDaniel Stenberg2021-09-271-1/+1
| | | | | | | | | | ... as the previously used function DES_set_key() will in some cases reject using a key that it deems "weak" which will cause curl to continue using the unitialized buffer content as key instead. Assisted-by: Harry Sintonen Fixes #7779 Closes #7781
* CI: align make and test flags in various config filesMarc Hoersken2021-09-273-14/+18
| | | | | | | | | | 1. Use Makefile target to run tests in autotools builds on AppVeyor. 2. Disable testing of SCP protocol on native Windows environments. 3. Remove redundant parameters -a -p from target test-nonflaky. 4. Don't use -vc parameter which is reserved for debugging. Replaces #7591 Closes #7690
* mailmap: unify Max!Daniel Stenberg2021-09-271-0/+2
|
* CURLOPT_PREREQFUNCTION: add new callbackMax Dymond2021-09-2721-4/+602
| | | | | | | | | | | | | | Triggered before a request is made but after a connection is set up Changes: - callback: Update docs and callback for pre-request callback - Add documentation for CURLOPT_PREREQDATA and CURLOPT_PREREQFUNCTION, - Add redirect test and callback failure test - Note that the function may be called multiple times on a redirection - Disable new 2086 test due to Windows weirdness Closes #7477
* KNOWN_BUGS: HTTP/2 connections through HTTPS proxy frequently stallDaniel Stenberg2021-09-271-0/+4
| | | | Closes #6936