summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* print_category: print help descriptions alignedbagder/help-alignedDaniel Stenberg2021-09-304-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
* 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
* TODO: make configure use --cache-file more and betterDaniel Stenberg2021-09-271-0/+8
| | | | Closes #7753
* urlapi: support UNC paths in file: URLs on WindowsSergey Markelov2021-09-273-6/+38
| | | | | | | | | | - file://host.name/path/file.txt is a valid UNC path \\host.name\path\files.txt to a non-local file transformed into URI (RFC 8089 Appendix E.3) - UNC paths on other OSs must be smb: URLs Closes #7366
* urlapi: add curl_url_strerror()i-ky2021-09-2725-72/+233
| | | | | | | | | | Add curl_url_strerror() to convert CURLUcode into readable string and facilitate easier troubleshooting in programs using URL API. Extend CURLUcode with CURLU_LAST for iteration in unit tests. Update man pages with a mention of new function. Update example code and tests with new functionality where it fits. Closes #7605
* RELEASE-NOTES: syncedDaniel Stenberg2021-09-261-3/+24
|
* libssh2: add SHA256 fingerprint supportMats Lindestam2021-09-2627-38/+360
| | | | | | | Added support for SHA256 fingerprint in command line curl and in libcurl. Closes #7646
* libcurl.rc: switch out the copyright symbol for plain ASCIIDaniel Stenberg2021-09-261-2/+2
| | | | | | | Reported-by: Vitaly Varyvdin Assisted-by: Viktor Szakats Fixes #7765 Closes #7776
* ngtcp2: fix QUIC transport parameter versionJun-ya Kato2021-09-251-6/+5
| | | | | | | fix inappropriate version setting for QUIC transport parameters. this patch keeps curl with ngtcp2 uses QUIC draft version (h3-29). Closes #7771
* examples/imap-append: fix end-of-data checkDaniel Stenberg2021-09-251-1/+1
| | | | | | Reported-by: Alexander Chuykov Fixes #7774 Closes #7775
* vtls: Fix a memory leak if an SSL session cannot be added to the cacheMichael Kaufmann2021-09-2410-16/+36
| | | | | | | | | | | | | | | On connection shutdown, a new TLS session ticket may arrive after the SSL session cache has already been destructed. In this case, the new SSL session cannot be added to the SSL session cache. The callers of Curl_ssl_addsessionid() need to know whether the SSL session has been added to the cache. If it has not been added, the reference counter of the SSL session must not be incremented, or memory used by the SSL session must be freed. This is now possible with the new output parameter "added" of Curl_ssl_addsessionid(). Fixes #7683 Closes #7752
* HTTP3.md: use 'autoreconf -fi' instead of buildconfMomoka Yamamoto2021-09-241-3/+3
| | | | | | buildconf is not used since #5853 Closes #7746
* GIT-INFO: rephrase to adapt to s/buildconf/autoreconfDaniel Stenberg2021-09-241-2/+2
|
* llist: remove redundant code, branch will not be executedh1zzz2021-09-241-3/+1
| | | | Closes #7770
* HTTP-COOKIES.md: remove duplicate 'each'tlahn2021-09-241-1/+1
| | | | Closes #7772
* libssh2: Get the version at runtime if possibleJoel Depooter2021-09-241-1/+1
| | | | | | | | | | | Previously this code used a compile time constant, meaning that libcurl always reported the libssh2 version that libcurl was built with. This could differ from the libssh2 version actually being used. The new code uses the CURL_LIBSSH2_VERSION macro, which is defined in ssh.h. The macro calls the libssh2_version function if it is available, otherwise it falls back to the compile time version. Closes https://github.com/curl/curl/pull/7768
* schannel: fix typoJoel Depooter2021-09-241-2/+2
| | | | Closes https://github.com/curl/curl/pull/7769
* cmake: with OpenSSL, define OPENSSL_SUPPRESS_DEPRECATEDDaniel Stenberg2021-09-231-0/+2
| | | | | | | | To avoid the "... is deprecated" warnings brought by OpenSSL v3. (We need to address the underlying code at some point of course.) Assisted-by: Jakub Zakrzewski Closes #7767
* curl-openssl: pass argument to sed single-quotedDaniel Stenberg2021-09-231-1/+1
| | | | | | | | | | ... instead of using an escaped double-quote. This is an attempt to make this work better with ksh that otherwise would insist on a double escape! Reported-by: Randall S. Becker Fixes #7758 Closes #7764
* RELEASE-NOTES: syncedDaniel Stenberg2021-09-232-29/+18
| | | | Bumped curlver to 7.80.0-dev
* misc: fix typos in docs and commentsa13460542021-09-236-6/+6
| | | | | | | No user facing output from curl/libcurl is changed by this, just comments. Closes #7747
* ci: update Lift config to match requirements of curl buildThomas M. DuBuisson2021-09-233-5/+5
| | | | | | Also renamed Muse -> Lift, the new tool name. Closes #7761
* cleanup: constify unmodified static structsRikard Falkeborn2021-09-2310-20/+20
| | | | | | | Constify a number of static structs that are never modified. Make them const to show this. Closes #7759
* RELEASE-NOTES: syncedcurl-7_79_1Daniel Stenberg2021-09-221-4/+0
| | | | curl 7.79.1 release