summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* parsedate: tune the date to epoch conversionbagder/parsedate-polishDaniel Stenberg2020-09-211-46/+11
| | | | | | | By avoiding an unnecessary error check and the temp use of the tm struct, the time2epoch conversion function gets a little bit faster. When repeating test 517, the updated version is perhaps 1% faster (on one particular build on one particular architecture).
* docs/MQTT: remove outdated paaragraphsDaniel Stenberg2020-09-211-12/+0
|
* docs/MQTT: not experimental anymoreDaniel Stenberg2020-09-211-20/+0
| | | | Follow-up to e37e4468688d8f
* docs/RESOURCES: removeDaniel Stenberg2020-09-182-86/+0
| | | | | | | | This document is not maintained and rather than trying to refresh it, let's kill it. A more up-to-date document with relevant RFCs is this page on the curl website: https://curl.haxx.se/rfc/ Closes #5980
* docs/TheArtOfHttpScripting: convert to markdownDaniel Stenberg2020-09-183-759/+693
| | | | | | | | | | Makes it easier to browse on github etc. Offers (better) links. It should be noted that this document is already mostly outdated and "Everything curl" at https://ec.haxx.se/ is a better resource and tutorial. Closes #5981
* BUGS: convert document to markdownDaniel Stenberg2020-09-183-303/+267
| | | | Closes #5979
* --help: strdup the categoryDaniel Stenberg2020-09-183-14/+14
| | | | | | | | | | ... since it is converted and the original pointer is freed on Windows unicode handling. Follow-up to aa8777f63febc Fixes #5977 Closes #5978 Reported-by: xwxbug on github
* CHECKSRC: document two missing warningsDaniel Stenberg2020-09-181-0/+4
|
* RELEASE-NOTES: syncedDaniel Stenberg2020-09-181-6/+40
|
* ftp: avoid risk of reading uninitialized integersDaniel Stenberg2020-09-181-2/+2
| | | | | | | | | If the received PASV response doesn't match the expected pattern, we could end up reading uninitialized integers for IP address and port number. Issue pointed out by muse.dev Closes #5972
* easy_reset: clear retry counterQuentin Balland2020-09-181-0/+1
| | | | | Closes #5975 Fixes #5974
* ftp: get rid of the PPSENDF macroDaniel Stenberg2020-09-181-156/+150
| | | | | | | The use of such a macro hides some of what's actually going on to the reader and is generally disapproved of in the project. Closes #5971
* man pages: switch to https://example.com URLsDaniel Stenberg2020-09-17125-129/+129
| | | | | | | Since HTTPS is "the new normal", this update changes a lot of man page examples to use https://example.com instead of the previous "http://..." Closes #5969
* github: remove the duplicate "Security vulnerability" entryDaniel Stenberg2020-09-171-3/+0
| | | | | | ... since github adds an entry automatically by itself. Closes #5970
* github: use new issue template featureEmil Engler2020-09-172-0/+23
| | | | | | | This helps us to avoid getting feature requests as well as security bugs reported into the issue tracker. Closes #5936
* urlapi: use more Curl_safefreeEmil Engler2020-09-171-4/+2
| | | | Closes #5968
* multi: align WinSock mask variables in Curl_multi_waitMarc Hoersken2020-09-171-11/+11
| | | | | | | | | | Also skip pre-checking sockets to set timeout_ms to 0 after the first socket has been detected to be ready. Reviewed-by: rcombs on github Reviewed-by: Daniel Stenberg Follow up to #5886
* multi: reuse WinSock events variable in Curl_multi_waitMarc Hoersken2020-09-171-12/+11
| | | | | | | | | | | Since the struct is quite large (1 long and 10 ints) we declare it once at the beginning of the function instead of multiple times inside loops to avoid stack movements. Reviewed-by: Viktor Szakats Reviewed-by: Daniel Stenberg Closes #5886
* TODO: dynamically decide to use socketpairDaniel Stenberg2020-09-161-0/+9
| | | | | | Suggested-by: Anders Bakken Closes #4829
* TODO: add PR reference for native IDN support on macOSDaniel Stenberg2020-09-161-0/+2
| | | | | | As there was work started on this that never got completed. Closes #5371
* tool_help.h: update copyright year rangeDaniel Stenberg2020-09-161-1/+1
| | | | Follow-up from aa8777f63febca
* CI/azure: disable test 571 in the msys2 buildsDaniel Stenberg2020-09-161-4/+4
| | | | | | | It's just too flaky there Reviewed-by: Marc Hoersken Closes #5954
* tool_writeout: protect fputs() from NULLDaniel Stenberg2020-09-151-9/+6
| | | | | | | | | When the code was changed to do fputs() instead of fprintf() it got sensitive for NULL pointers; add checks for that. Follow-up from 0c1e767e83ec66 Closes #5963
* test3015: verify stdout "as text"Daniel Stenberg2020-09-151-1/+1
| | | | | | Follow-up from 0c1e767e83e to please win32 tests Closes #5962
* travis: use libressl v3.1.4 instead of masterDaniel Stenberg2020-09-151-1/+1
| | | | | | | ... as their git master seems too fragile to use (and 3.2.1 which is the latest has a build failure). Closes #5964
* tests/FILEFORMAT: document type=shell for <command>Daniel Stenberg2020-09-151-1/+4
|
* tests/FILEFORMAT: document nonewline support for <file>Daniel Stenberg2020-09-151-1/+4
| | | | | | The one in <client>, that creates files. Follow-up from b83947c8df7
* tool_writeout: add new writeout variable, %{num_headers}anio2020-09-1514-23/+191
| | | | | | This variable gives the number of headers. Closes #5947
* tool_urlglob: fix compiler warning "unreachable code"Daniel Stenberg2020-09-151-2/+2
| | | | | | (On Windows builds.) Follow-up to 70a3b003d9
* vtls: deduplicate client certificates in ssl_config_dataGergely Nagy2020-09-1411-38/+36
| | | | Closes #5629
* ftp: a 550 response to SIZE returns CURLE_REMOTE_FILE_NOT_FOUNDDaniel Stenberg2020-09-1416-8/+155
| | | | | | | | | | | | | | | | | | | | This is primarily interesting for cases where CURLOPT_NOBODY is set as previously curl would not return an error for this case. MDTM getting 550 now also returns this error (it returned CURLE_FTP_COULDNT_RETR_FILE before) in order to unify return codes for missing files across protocols and specific FTP commands. libcurl already returns error on a 550 as a MDTM response (when CURLOPT_FILETIME is set). If CURLOPT_NOBODY is not set, an error would happen subsequently anyway since the RETR command would fail. Add test 1913 and 1914 to verify. Updated several tests accordingly due to the updated SIZE behavior. Reported-by: Tomas Berger Fixes #5953 Closes #5957
* curl: make checkpasswd use dynbufDaniel Stenberg2020-09-141-15/+8
| | | | Closes #5952
* curl: make glob_match_url use dynbufDaniel Stenberg2020-09-141-31/+15
| | | | Closes #5952
* curl: make file2memory use dynbufDaniel Stenberg2020-09-141-38/+14
| | | | Closes #5952
* curl: make file2string use dynbufDaniel Stenberg2020-09-141-32/+9
| | | | Closes #5952
* imap: set cselect_bits to CURL_CSELECT_IN initiallyAntarpreet Singh2020-09-141-0/+3
| | | | | | | | | | | | | | | ... when continuing a transfer from a FETCH response. When the size of the file was small enough that the entirety of the transfer happens in a single go and schannel buffers holds the entire data. However, it wasn't completely read in Curl_pp_readresp since a line break was found before that could happen. So, by the time we are in imap_state_fetch_resp - there's data in buffers that needs to be read via Curl_read but nothing to read from the socket. After we setup a transfer (Curl_setup_transfer), curl just waits on the socket state to change - which doesn't happen since no new data ever comes. Closes #5961
* RELEASE-NOTES: syncedDaniel Stenberg2020-09-141-5/+26
|
* test434: test -K use in a single line without newlineDaniel Stenberg2020-09-142-1/+49
| | | | Closes #5946
* runtests: allow creating files without newlinesDaniel Stenberg2020-09-141-0/+4
| | | | Closes #5946
* curl: use curlx_dynbuf for realloc when loading config filesDaniel Stenberg2020-09-146-42/+44
| | | | | | | | | ... fixes an integer overflow at the same time. Reported-by: ihsinme on github Assisted-by: Jay Satiro Closes #5946
* dynbuf: provide curlx_ names for reuse by the curl toolDaniel Stenberg2020-09-142-5/+24
| | | | Closes #5946
* dynbuf: make sure Curl_dyn_tail() zero terminatesDaniel Stenberg2020-09-141-0/+1
| | | | Closes #5959
* tests: add test1912 to the distDaniel Stenberg2020-09-121-1/+1
| | | | Follow-up to 70984ce1be4cab6c
* docs/LICENSE-MIXING: removeDaniel Stenberg2020-09-114-136/+3
| | | | | | | This document is not maintained and I feel that it doesn't provide much value to users anymore (if it ever did). Closes #5955
* http: consolidate nghttp2_session_mem_recv() call pathsLaramie Leavitt2020-09-101-88/+29
| | | | | | | | | | | | | | | | | | | | | Previously there were several locations that called nghttp2_session_mem_recv and handled responses slightly differently. Those have been converted to call the existing h2_process_pending_input() function. Moved the end-of-session check to h2_process_pending_input() since the only place the end-of-session state can change is after nghttp2 processes additional input frames. This will likely fix the fuzzing error. While I don't have a root cause the out-of-bounds read seems like a use after free, so moving the nghttp2_session_check_request_allowed() call to a location with a guaranteed nghttp2 session seems reasonable. Also updated a few nghttp2 callsites to include error messages and added a few additional error checks. Closes #5648
* HISTORY: mention alt-svc added in 2019Daniel Stenberg2020-09-101-3/+8
| | | | ... and make 1996 the first year subtitle
* base64: also build for pop3 and imapDaniel Stenberg2020-09-101-0/+2
| | | | | | | | Follow-up to the fix in 20417a13fb8f83 Reported-by: Michael Olbrich Fixes #5937 Closes #5948
* base64: enable in build with SMTPDaniel Stenberg2020-09-091-1/+2
| | | | | | | | The oauth2 support is used with SMTP and it uses base64 functions. Reported-by: Michael Olbrich Fixes #5937 Closes #5938
* curl_mime_headers.3: fix the example's use of curl_slist_appendDaniel Stenberg2020-09-081-2/+2
| | | | | | Reported-by: sofaboss on github Fixes #5942 Closes #5943
* lib583: fix enum mixupDaniel Stenberg2020-09-081-1/+1
| | | | grrr the previous follow-up to 17fcdf6a31 was wrong