summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* mqtt: fix Curl_read() error handling while reading remaining lengthbagder/mqtt-break-betterDaniel Stenberg2020-04-201-0/+2
| | | | Detected by Coverity. CID 1462320.
* http: free memory when Alt-Used header creation fails due to OOMDaniel Stenberg2020-04-201-8/+5
| | | | | | Reported-by: James Fuller Fixes #5268 Closes #5269
* lib: fix typos in comments and errormessagesDaniel Gustafsson2020-04-203-5/+5
| | | | | This fixes a few randomly spotted typos in recently merged code, most notably one in a userfacing errormessage the schannel code.
* tests: run the SOCKS test server on a dynamic port numberDaniel Stenberg2020-04-202-12/+21
| | | | Closes #5266
* multi-ssl: reset the SSL backend on `Curl_global_cleanup()`Johannes Schindelin2020-04-201-0/+6
| | | | | | | | | | | | | | | | | | When cURL is compiled with support for multiple SSL backends, it is possible to configure an SSL backend via `curl_global_sslset()`, but only *before* `curl_global_init()` was called. If another SSL backend should be used after that, a user might be tempted to call `curl_global_cleanup()` to start over. However, we did not foresee that use case and forgot to reset the SSL backend in that cleanup. Let's allow that use case. Fixes #5255 Closes #5257 Reported-by: davidedec on github Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* tests: run the TFTP test server on a dynamic port numberDaniel Stenberg2020-04-203-23/+85
| | | | | | | Picking a dynamic unused port is better than a fixed to avoid the collision risk. Closes #5265
* mqtt: improve the state machineDaniel Stenberg2020-04-2011-99/+402
| | | | | | | | | | To handle PUBLISH before SUBACK and more. Updated the existing tests and added three new ones. Reported-by: Christoph Krey Bug: https://curl.haxx.se/mail/lib-2020-04/0021.html Closes #5246
* runtests: always put test number in servercmd fileDaniel Stenberg2020-04-202-8/+8
|
* RELEASE-NOTES: syncedDaniel Stenberg2020-04-201-12/+36
|
* release-notes.pl: fix parsing typoDaniel Stenberg2020-04-201-2/+2
|
* ensure all references to ports are replaced by varsxquery2020-04-202-6/+6
|
* add more alt-svc test coveragexquery2020-04-203-1/+190
|
* test1247: use http server to get the port number setDaniel Stenberg2020-04-201-1/+1
| | | | Follow-up to 0f5db7b263f
* runtests: use a unix domain socket path with the pid in the nameDaniel Stenberg2020-04-191-1/+1
| | | | | | | To make it impossible for test cases to access the file name without using the proper variable for the purpose. Closes #5264
* src: Remove C99 constructs to ensure C89 complianceTom2020-04-192-4/+6
| | | | | | | | | This fixes the error: 'for' loop initial declaration used outside C99 mode by declaring the loop increment variable in the beginning of the block instead of inside the for loop. Fixes #5254 Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
* runtests: dummy init the ports variables to avoid warningsDaniel Stenberg2020-04-191-30/+32
| | | | ... and generate something that can help debug test cases.
* mime: properly check Content-Type even if it has parametersPatrick Monnerat2020-04-193-3/+84
| | | | | | | | New test 669 checks this fix is effective. Fixes #5256 Closes #5258 Reported-by: thanhchungbtc on github
* tests/FILEFORMAT: converted to markdown and extendedDaniel Stenberg2020-04-194-515/+478
| | | | Closes #5261
* test1245: make it work with dynamic FTP server portbagder/tests-on-dynportDaniel Stenberg2020-04-181-5/+1
|
* test1055: make it work with dynamic FTP portDaniel Stenberg2020-04-181-5/+1
|
* test1028: make it run on dynamic FTP server portDaniel Stenberg2020-04-181-5/+1
|
* tests: move pingpong server to dynamic listening portDaniel Stenberg2020-04-183-62/+92
| | | | | | | | FTP, IMAP, POP3, SMTP and their IPv6 versions are now all on dynamic ports Test 842-845 are unfortunately a bit hard to move over to this concept right now and require "default port" still...
* test1056: work with dynamic HTTP ipv6 portDaniel Stenberg2020-04-181-6/+2
|
* test1448: work with dynamic HTTP server portDaniel Stenberg2020-04-181-2/+2
|
* tests: introduce preprocessed test casesDaniel Stenberg2020-04-1810-189/+183
| | | | | | | | | | | | The runtests script now always performs variable replacement on the entire test source file before the test gets executed, and saves the updated version in a temporary file (log/test[num]) so that all test case readers/servers can use that version (if present) and thus enjoy the powers of test case variable substitution. This is necessary to allow complete port number freedom. Test 309 is updated to work with a non-fixed port number thanks to this.
* tests: make 2006-2010 handle different port number lengthsDaniel Stenberg2020-04-185-8/+24
|
* tests: run the sws server on "any port"Daniel Stenberg2020-04-183-29/+101
| | | | | | | Makes the test servers for HTTP and Gopher pop up on a currently unused port and runtests adapts to that! Closes #5247
* sockfilt: tidy variable naming and data structure in select_wsMarc Hoersken2020-04-181-113/+112
| | | | | | | This commit does not introduce any logical changes to the code. Reviewed-by: Jay Satiro and Marcel Raad Closes #5238
* libssh: Use new ECDSA key types to check known hostsAnderson Toshiyuki Sasaki2020-04-171-0/+8
| | | | | | | | | From libssh 0.9.0, ssh_key_type() returns different key types for ECDSA keys depending on the curve. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Fixes #5252 Closes #5253
* appveyor: add Unicode winbuild jobsMarcel Raad2020-04-171-2/+30
| | | | | | These are cheap as they don't build tests. Closes https://github.com/curl/curl/pull/5063
* mqttd: s/errno/SOCKERRNODaniel Stenberg2020-04-161-4/+2
| | | | | | | To behave proper on Windows Reported-by: Gisle Vanem Bug: https://github.com/curl/curl/commit/5e855bbd18f84a02c951be7cac6188276818cdac#r38507132 Closes #5241
* buildconf: use find -execdir instead, remove -print and the ares filesDaniel Stenberg2020-04-151-5/+2
| | | | | | Follow-up to 1e41bec96a6e Suggested-by: Marc Hörsken
* buildconf: avoid using tempfile when removing filesAlexander V. Tikhonov2020-04-151-10/+1
| | | | Closes #5213
* copyright: bump the copyright year rangeDaniel Stenberg2020-04-153-3/+3
|
* scripts/release-notes.pl: accept colon after the Fixes/Closes keywordsDaniel Stenberg2020-04-141-2/+2
|
* docs/MQTT: replace confusing 80 by 75JP Mens2020-04-141-1/+1
| | | | | | | I was a bit surprised by the `80`: first thought: what's HTTP doing here? ;) Closes #5236
* cmake: Avoid MSVC C4273 warnings in send/recv checksBrad King2020-04-141-0/+6
| | | | | | | | | | | | | | | We use `check_c_source_compiles` to check possible send/recv signatures by reproducing the forward declarations from system headers. On Windows the `winsock2.h` header adds dll linkage settings to its forward declaration. If ours does not match the compiler warns: warning C4273: 'recv': inconsistent dll linkage Add `WINSOCK_API_LINKAGE` to our test signatures when it is defined so that our linkage is consistent with that from `winsock2.h`. Fixes #4764 Closes #5232
* KNOWN_BUGS: Add entry 'Blocking socket operations'Jay Satiro2020-04-142-2/+17
| | | | | | | | | | | | | | - Add threaded resolver cleanup and GSSAPI for FTP to the TODO list of known blocking operations. - New known bugs entry 'Blocking socket operations in non-blocking API' that directs to the TODO's list of known blocking operations. Ref: https://github.com/curl/curl/pull/5214#issuecomment-612488021 Reported-by: Marc Hoersken Closes https://github.com/curl/curl/pull/5216
* test2043: use revoked.badssl.com instead of revoked.grc.comMarc Hoersken2020-04-141-1/+1
| | | | | | | | The certificate of revoked.grc.com has expired on 2020-04-13. Reviewed-by: Jay Satiro Closes #5233
* sockfilt: fix broken pipe on Windows to be ready in select_wsMarc Hoersken2020-04-141-3/+6
| | | | Closes #5228
* RELEASE-NOTES: syncedDaniel Stenberg2020-04-141-11/+40
|
* scripts/release-notes: fix duplicate output headerDaniel Stenberg2020-04-141-0/+1
|
* github/workflow: enable MQTT in the macOS debug buildDaniel Stenberg2020-04-141-1/+1
|
* azure: add mqtt support to one of the Windows buildsDaniel Stenberg2020-04-141-1/+1
|
* travis: add mqtt job on LinuxDaniel Stenberg2020-04-141-0/+5
|
* tests: add four MQTT tests 1190 - 1193Daniel Stenberg2020-04-145-0/+236
|
* tests: add the mqtt test server mqttdDaniel Stenberg2020-04-144-7/+1001
|
* tests: support hex encoded data and mqtt serverDaniel Stenberg2020-04-144-8/+132
| | | | The mqtt server is started using a "random" port.
* mqtt: add new experimental protocolBjorn Stenberg2020-04-1418-57/+766
| | | | Closes #5173
* TODO: Consider convenience options for JSON and XML?Daniel Stenberg2020-04-141-0/+15
| | | | Closes #5203