summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* getinfo: add CURLINFO_ADDED_TIME_Tbagder/time-addedDaniel Stenberg2023-01-0911-17/+53
| | | | | | | | | The relative time from the creation of the multi handle until the easy handle reached the DO state. initial take for debug and discussion purposes The name shall be improved/set once we agree on the exact time it is set.
* quic: improve connect error message, debugging info, fix false connect reportStefan Eissing2023-01-095-38/+64
| | | | | | | | | | | - ECONNECTREFUSED has not its own fail message in quic filters - Debug logging in connect eyballing improved - Fix bug in ngtcp2/quiche that could lead to false success reporting. Reported-by: Divy Le Ray Fixes #10245 Closes #10248
* quiche: fix build without any HTTP/2 implementationStefan Eissing2023-01-092-5/+1
| | | | | Fixes #10260 Closes #10263
* .github/workflows/linux.yml: add a quiche CI jobDaniel Stenberg2023-01-092-21/+28
| | | | | | Move over from zuul Closes #10241
* curl.h: allow up to 10M buffer sizeDaniel Stenberg2023-01-082-2/+4
| | | | | | | | | | Bump the limit from 512K. There might be reasons for applications using h3 to set larger buffers and there is no strong reason for curl to have a very small maximum. Ref: https://curl.se/mail/lib-2023-01/0026.html Closes #10256
* GHA: use designated ngtcp2 and its dependencies versionsTatsuhiro Tsujikawa2023-01-083-9/+9
| | | | | | | Designate ngtcp2 and its dependency versions so that the CI build does not fail without our control. Closes #10257
* docs/cmdline-opts/hsts.d: explain hsts moreDaniel Stenberg2023-01-081-0/+5
| | | | Closes #10258
* msh3: run again in its cfilterStefan Eissing2023-01-083-76/+258
| | | | | | | | | | - test 2500, single GET works - test 2501, single POST stalls - test 2502, multiple, sequential GETs each use a new connection since MsH3ConnectionGetState(qconn) no longer reports CONNECTED after one GET. Closes #10204
* sendf: fix build for Linux TCP fastopenJay Satiro2023-01-082-1/+3
| | | | | | | | | | | | | | - Fix the remote addr struct dereference. - Include cf-socket.h in urldata.h. Follow-up to 6a8d7ef9 which changed conn->ipaddr (Curl_addrinfo* ) member to conn->remote_addr (Curl_sockaddr_ex *) several days ago. Reported-by: Stephan Guilloux Fixes https://github.com/curl/curl/issues/10249 Closes https://github.com/curl/curl/pull/10250
* RELEASE-NOTES: syncedDaniel Stenberg2023-01-071-8/+41
|
* setopt: move the SHA256 opt within #ifdef libssh2Daniel Stenberg2023-01-072-8/+11
| | | | | | | | | Because only the libssh2 backend not supports it and thus this should return error if this option is used other backends. Reported-by: Harry Sintonen Closes #10255
* nss: implement data_pending methodPatrick Monnerat2023-01-071-1/+14
| | | | | | | | | | | | NSS currently uses the default Curl_none_data_pending() method which always returns false, causing TLS buffered input data to be missed. The current commit implements the nss_data_pending() method that properly monitors the presence of available TLS data. Ref:#10077 Closes #10225
* CURLOPT_HEADERDATA.3: warn DLL users must set write functionJay Satiro2023-01-061-0/+4
| | | | | | | | | | | | | | | | - Warn that in Windows if libcurl is running from a DLL and if CURLOPT_HEADERDATA is set then CURLOPT_WRITEFUNCTION or CURLOPT_HEADERFUNCTION must be set as well, otherwise the user may experience crashes. We already have a similar warning in CURLOPT_WRITEDATA. Basically, in Windows libcurl could crash writing a FILE pointer that was created by a different C runtime. In Windows each DLL that is part of a program may or may not have its own C runtime. Ref: https://github.com/curl/curl/issues/10231 Closes https://github.com/curl/curl/pull/10233
* x509asn1: fix compile errors and warningsjonrumsey2023-01-051-2/+4
| | | | | | Various small issues when built for GSKit Closes #10238
* runtests: fix detection of TLS backendsPatrick Monnerat2023-01-051-11/+11
| | | | | | | | | | | | | | | Built-in TLS backends are detected at test time by scanning for their names in the version string line returned by the cli tool: as this line may also list the libssh configuration that mentions its own backend, the curl backend may be wrongly determined. In example, if the version line contains "libssh/0.10.4/openssl/zlib", OpenSSL is detected as a curl-configured backend even if not. This fix requires the backend names to appear as full words preceded by spacing in the version line to be recognized as curl TLS backends. Closes #10236
* GHA: add job on Slackware 15.0andy59952023-01-051-0/+23
| | | | Closes #10230
* test363: make even smaller writes to loop moreDaniel Stenberg2023-01-051-2/+2
|
* http_proxy: do not assign data->req.p.http use local copyDaniel Stenberg2023-01-054-33/+29
| | | | | | | | Avoid the tricky reusing of the data->req.p.http pointer for http proxy tunneling. Fixes #10194 Closes #10234
* quic: rename vquic implementations, fix for quiche build.Stefan Eissing2023-01-058-58/+52
| | | | | | | | | | - quiche in debug mode did not build, fixed. - moved all vquic implementation files to prefix curl_* to avoid the potential mixups between provided .h files and our own. - quich passes test 2500 and 2502. 2501, the POST, fail with the body being rejected. Quich bug? Closes #10242
* sectransp: fix for incomplete read/writesStefan Eissing2023-01-051-40/+88
| | | | | | | | | | SecureTransport expects result code errSSLWouldBlock when the requested length could not be sent/recieved in full. The previous code returned noErr, which let SecureTransport to believe that the IO had terminated prematurely. Fixes #10227 Closes #10235
* GHA: Hacktoberfest CI: Update deprecated 'set-output' commandandy59952023-01-051-2/+2
| | | | Closes #10221
* scripts: set file mode +x on all perl and shell scriptsJay Satiro2023-01-0516-0/+0
| | | | | | | | | | | | | - Set all scripts +x, ie 644 => 755. Prior to this change some scripts were not executable and therefore could not be called directly. ~~~ git ls-files -s \*.{sh,pl,py} | grep -v 100755 ~~~ Closes https://github.com/curl/curl/pull/10219
* tool_operate: fix headerfile writingStefan Eissing2023-01-041-7/+8
| | | | | | | | | Do not rely on the first transfer started to be the first to get a response (remember -Z). All transfers now write the headefile (-D) in append mode, making sure that the order of transfer responses does not lead to overwrites of previous data. Closes #10224
* misc: reduce struct and struct field sizesDaniel Stenberg2023-01-0412-71/+82
| | | | | | | | | | | | - by using BIT() instead of bool - imap: shrink struct - ftp: make state 'unsigned char' - ftp: sort ftp_conn struct entries on size - urldata: use smaller fields for SSL version info storage - pop3: reduce the pop3_conn struct size - smtp: reduce the size of the smtp structs Closes #10186
* noproxy: support for space-separated names is deprecatedDaniel Stenberg2023-01-045-44/+88
| | | | | | | | To be removed in July 2024. Assisted-by: Michael Osipov Fixes #10209 Closes #10215
* lib: fix typos in comments which repeat a wordAndrei Rybak2023-01-042-2/+2
| | | | | | | Remove erroneously duplicated words in code comments of files `lib.connect.c` and `lib/url.c`. Closes #10220
* cmake: set SOVERSION also for macOSRadek Brich2023-01-031-0/+1
| | | | Closes #10214
* http2: fix compiler warning due to uninitialized variableJay Satiro2023-01-031-1/+1
| | | | | | Prior to this change http2_cfilter_add could return an uninitialized cfilter pointer in an OOM condition. In this case though, the pointer is discarded and not dereferenced so there was no risk of a crash.
* cf-socket: keep sockaddr local in the socket filtersStefan Eissing2023-01-038-140/+174
| | | | | | | | | | | | | - copy `struct Curl_addrinfo` on filter setup into context - remove `struct Curl_addrinfoi *` with `struct Curl_sockaddr_ex *` in connectdata that is set and NULLed by the socket filter - this means we have no reference to the resolver info in connectdata or its filters - trigger the CF_CTRL_CONN_INFO_UPDATE event when the complete filter chain reaches connected status - update easy handle connection information on CF_CTRL_DATA_SETUP event. Closes #10213
* RELEASE-NOTES: syncedDaniel Stenberg2023-01-031-8/+50
|
* runtests: consider warnings fatal and error on themDaniel Stenberg2023-01-031-1/+2
| | | | | | | | | To help us detect and fix warnings in this script easier and faster. Assisted-by: Jakob Hirsch Ref: #10206 Closes #10208
* copyright: update all copyright lines and remove year rangesDaniel Stenberg2023-01-031856-2042/+1962
| | | | | | | | | | | | - they are mostly pointless in all major jurisdictions - many big corporations and projects already don't use them - saves us from pointless churn - git keeps history for us - the year range is kept in COPYING checksrc is updated to allow non-year using copyright statements Closes #10205
* docs/DEPRECATE.md: deprecate gskitDaniel Stenberg2023-01-031-0/+12
| | | | | | | | | | | | | | Ref: #10163 - This is a niche TLS library, only running on some IBM systems - no regular curl contributors use this backend - no CI builds use or verify this backend - gskit, or the curl adaption for it, lacks many modern TLS features making it an inferior solution - build breakages in this code take weeks or more to get detected - fixing gskit code is mostly done "flying blind" Closes #10201
* Revert "x509asn1: avoid freeing unallocated pointers"Daniel Stenberg2023-01-031-8/+9
| | | | | | | This reverts commit 6b19247e794cfdf4ec63c5880d8f4f5485f653ab. Fixes #10163 Closes #10207
* ngtcp2: fix the build without 'sendmsg'Daniel Stenberg2023-01-031-1/+0
| | | | | | Follow-up from 71b7e0161032 Closes #10210
* cmake: check for sendmsgDaniel Stenberg2023-01-031-0/+1
| | | | | | Used by ngtcp2 Closes #10211
* runtest.pl: add expected fourth return valueTimmy Schierling2023-01-021-1/+1
| | | | | | | Fixes warning in autobild log: "Use of uninitialized value $HTTP2TLSPORT in substitution iterator at /tests/runtests.pl line 3516" Closes #10206
* http2: when using printf %.*s, the length arg must be 'int'Daniel Stenberg2023-01-021-6/+6
| | | | | | Detected by Coverity CID 1518341 Closes #10203
* cfilters: check for NULL before using pointerDaniel Stenberg2023-01-021-2/+2
| | | | | | Detected by Coverity CID 1518343 Closes #10202
* http2: in connisdead check, attach the connection before readingDaniel Stenberg2023-01-021-1/+4
| | | | | | | | | | | Otherwise data->conn is NULL and things go wrong. This problem caused occastional failures in test 359, 1700 and more depending on timing and the alignment of various planets. Assisted-by: Stefan Eissing Closes #10199
* Linux CI: update some dependecies to latest tagPhilip H2023-01-024-8/+8
| | | | Closes #10195
* c-hyper: move down the Accept-Encoding header generationDaniel Stenberg2023-01-021-11/+11
| | | | | | | To match the internal HTTP request header order so that test 1277 works again. Closes #10200
* release-notes.pl: check fixes/closes lines betterDaniel Stenberg2023-01-021-6/+11
| | | | | To better skip lines that just happen to mention those words at the start of a line without being instructions.
* test1560: use a UTF8-using locale when runDaniel Stenberg2023-01-021-0/+3
| | | | | | | | | There are odd cases that don't use UTF8 and then the IDN handling goes wrong. Reported-by: Marcel Raad Fixes #10193 Closes #10196
* cf-socket: fix build regressionDaniel Stenberg2023-01-021-2/+2
| | | | | | Reported-by: Stephan Guilloux Fixes #10190 Closes #10191
* examples: remove the curlgtk.c exampleDaniel Stenberg2023-01-022-121/+1
| | | | | | | | | | | - it does not add a lot of value - we do not test-build it to verify because of its dependencies - unclear for what GTK versions it works or not Reported-by: odek86 on github Fixes #10197 Closes #10198
* docs: add link to GitHub Discussionsandy59952023-01-021-2/+4
| | | | Closes #10171
* GHA: ignore changes to md files for most workflowsandy59952023-01-028-8/+40
| | | | Closes #10176
* http: decode transfer encoding firstJosh Brobst2023-01-024-15/+239
| | | | | | | | | | | The unencoding stack is added to as Transfer-Encoding and Content-Encoding fields are encountered with no distinction between the two, meaning the stack will be incorrect if, e.g., the message has both fields and a non-chunked Transfer-Encoding comes first. This commit fixes this by ordering the stack with transfer encodings first. Reviewed-by: Patrick Monnerat Closes #10187
* curl.h: mark CURLSSLBACKEND_MESALINK as deprecatedDaniel Stenberg2023-01-011-2/+2
| | | | | | | | Follow-up since 223f26c28a340b36 Deprecated since 7.82.0 Closes #10189