summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* openssl: remove #if 0 leftoverbagder/openssl-if-0Daniel Stenberg2020-11-301-4/+0
| | | | Follow-up to 4c9768565ec3a9 (from Sep 2008)
* ntlm: avoid malloc(0) on zero length user and domainDaniel Stenberg2020-11-291-6/+2
| | | | | | | | ... and simplify the too-long checks somewhat. Detected by OSS-Fuzz Closes #6264
* RELEASE-NOTES: syncedDaniel Stenberg2020-11-281-8/+33
|
* tests/server/tftpd.c: close upload file in case of abortMarc Hoersken2020-11-281-0/+6
| | | | | | | | | | | Commit c353207 removed the closing right after do_tftp which covered the case of abort. This handles that case. Reviewed-by: Jay Satiro Reviewed-by: Daniel Stenberg Follow up to #6209 Closes #6234
* ngtcp2: use the minimal version of QUIC supported by ngtcp2Daiki Ueno2020-11-261-1/+1
| | | | Closes #6250
* ngtcp2: advertise h3 ALPN unconditionallyDaiki Ueno2020-11-261-17/+5
| | | | Closes #6250
* vquic/ngtcp2.h: define local_addr as sockaddr_storageDaiki Ueno2020-11-262-4/+5
| | | | | | | | | | | | This field needs to be wide enough to hold sockaddr_in6 when connecting via IPv6. Otherwise, ngtcp2_conn_read_pkt will drop the packets because of the address mismatch: I00000022 [...] con ignore packet from unknown path We can safely assume that struct sockaddr_storage is available, as it is used in the public interface of ngtcp2. Closes #6250
* socks: check for DNS entries with the right port numberDaniel Stenberg2020-11-261-1/+1
| | | | | | | | | | The resolve call is done with the right port number, but the subsequent check used the wrong one, which then could find a previous resolve which would return and leave the fresh resolve "incomplete" and leaking memory. Fixes #6247 Closes #6253
* curl_setup: USE_RESOLVE_ON_IPS is for Apple native resolver useDaniel Stenberg2020-11-261-1/+1
| | | | ... so don't define it when instructed to use c-ares!
* test506: make it not run in c-ares buildsDaniel Stenberg2020-11-261-2/+3
| | | | | | | | As the asynch nature of it may trigger events in another order. A c-ares upgrade made it break. Reported-by: Marc Hörsken Fixes #6247
* runtests: make 'c-ares' a "feature" to depend onDaniel Stenberg2020-11-262-0/+2
| | | | ... also added to the docs.
* tool_writeout: use off_t getinfo-types instead of doublesDaniel Stenberg2020-11-261-30/+29
| | | | | | | | Commit 3b80d3ca46b12e52342 (June 2017) introduced getinfo replacement variables that use curl_off_t instead of doubles. Switch the --write-out function over to use them. Closes #6248
* file: avoid duplicated code sequenceEmil Engler2020-11-251-11/+1
| | | | | | | | | file_disconnect() is identical with file_do() except the function header but as the arguments are unused anyway so why not just return file_do() directly! Reviewed-by: Daniel Stenberg Closes #6249
* infof/failf calls: fix format specifiersRikard Falkeborn2020-11-2412-20/+20
| | | | | | Update a few format specifiers to match what is being printed. Closes #6241
* docs/INTERNALS: remove reference to Curl_sendf()Daniel Stenberg2020-11-242-7/+3
| | | | | | | | | The function has been removed from common usage. Also removed comment in gopher.c that still referenced it. Reported-by: Rikard Falkeborn Fixes #6242 Closes #6243
* examples: update .gitignoreRikard Falkeborn2020-11-231-4/+8
| | | | | | | | | | | | Add files that are generated by 'make examples' and remove some that have been renamed. The commits that renamed the programs are e9625c5bc6c046a (imap.c and simplesmtp.c were renamed to imap-fetch.c and smtp-send.c) and ad39e7ec01e7 (pop3slist.c and pop3s.c were renamed to pop3-list.c and pop3-ssl.c). Closes #6240
* asyn: use 'struct thread_data *' instead of 'void *'Daniel Stenberg2020-11-233-25/+24
| | | | | | | | | | To reduce use of types that can't be checked at compile time. Also removes several typecasts. ... and rename the struct field from 'os_specific' to 'tdata'. Closes #6239 Reviewed-by: Jay Satiro
* Makefile.m32: add support for UNICODE buildsViktor Szakats2020-11-232-0/+13
| | | | | | | | | | | | | It requires the linker to support the `-municode` option. This is available in more recent mingw-w64 releases. Ref: https://gcc.gnu.org/onlinedocs/gcc/x86-Windows-Options.html Ref: https://stackoverflow.com/questions/3571250/wwinmain-unicode-and-mingw/11706847#11706847 Reviewed-by: Jay Satiro Reviewed-by: Marcel Raad Closes #6228
* urldata: remove 'void *protop' and create the union 'p'Daniel Stenberg2020-11-2322-168/+183
| | | | | | | ... to avoid the use of 'void *' for the protocol specific structs done per transfer. Closes #6238
* winbuild: remove docs from Makefiles and refer to README.mdDaniel Stenberg2020-11-223-56/+13
| | | | | | | | | | | | | | | Reduce risk for conflicting docs and makes it to a single place to fix and polish. add these missing options to the readme: ENABLE_OPENSSL_AUTO_LOAD_CONFIG and ENABLE_UNICODE clarify ENABLE_SCHANNEL default varies Fixes #6216 Closes #6227 Co-Authored-by: Jay Satiro
* http3: use the master branch of GnuTLS for testingDaiki Ueno2020-11-222-5/+5
| | | | Closes #6235
* KNOWN_BUGS: curl with wolfSSL lacks support for renegotiationDaniel Stenberg2020-11-221-0/+9
| | | | Closes #5839
* KNOWN_BUGS: wakeup socket disconnect causes havocDaniel Stenberg2020-11-221-0/+13
| | | | | Closes #6132 Closes #6133
* RELEASE-NOTES: syncedDaniel Stenberg2020-11-211-4/+23
|
* curl: add compatibility for Amiga and GCC 6.5Oliver Urbann2020-11-205-14/+21
| | | | | | | Changes are mainly reordering and adding of includes required to compile with a more recent version of GCC. Closes #6220
* tests/server/tftpd.c: close upload file right after transferMarc Hoersken2020-11-201-5/+4
| | | | | | | | | | Make sure uploaded file is no longer locked after the transfer while waiting for the final ACK to be handled. Assisted-by: Daniel Stenberg Bug: #6058 Closes #6209
* CI/cirrus: simplify logic for disabled testsMarc Hoersken2020-11-201-10/+3
| | | | | | | | | | | | | | The OpenSSH server instance for the testsuite cannot be started on FreeBSD, therefore the SFTP and SCP tests are disabled right away from the beginning. The previous OS version specific logic for SKIP_TESTS is no longer needed/used and can therefore be removed. Reviewed-by: Daniel Stenberg Follow up to #6211 Closes #6229
* mailmap: Daniel HwangDaniel Gustafsson2020-11-201-0/+1
| | | | | | | | Add Daniel Hwang to the mailmap to cover the alternative spelling Daniel Lee Hwang which was used in one commit. Closes #6230 Reviewed-by: Daniel Stenberg <daniel@haxx.se>
* openssl: guard against OOM on context creationDaniel Gustafsson2020-11-191-2/+6
| | | | | | | | | | | | | EVP_MD_CTX_create will allocate memory for the context and returns NULL in case the allocation fails. Make sure to catch any allocation failures and exit early if so. In passing, also move to EVP_DigestInit rather than EVP_DigestInit_ex as the latter is intended for ENGINE selection which we don't do. Closes #6224 Reviewed-by: Daniel Stenberg <daniel@haxx.se> Reviewed-by: Emil Engler <me@emilengler.com>
* cmake: use libcurl.rc in all Windows buildsVincent Torri2020-11-191-1/+1
| | | | | Reviewed-by: Marcel Raad Closes #6215
* cmake: make CURL_ZLIB a tri-state variableCristian Morales Vega2020-11-193-27/+30
| | | | | | | | | By differentiating between ON and AUTO it can make a missing zlib library a hard error when CURL_ZLIB=ON is used. Reviewed-by: Jakub Zakrzewski Closes #6221 Fixes #6173
* quiche: remove 'static' from local bufferDaniel Stenberg2020-11-191-1/+1
| | | | | | For thread-safety Closes #6223
* KNOWN_BUGS: cmake: libspsl is not supportedDaniel Stenberg2020-11-181-0/+5
| | | | Closes #6214
* KNOWN_BUGS: cmake autodetects cert paths when cross-compilingDaniel Stenberg2020-11-181-0/+8
| | | | Closes #6178
* KNOWN_BUGS: cmake build doesn't fail if zlib not foundDaniel Stenberg2020-11-181-0/+5
| | | | Closes #6173
* KNOWN_BUGS: cmake libcurl.pc uses absolute library pathsDaniel Stenberg2020-11-181-0/+9
| | | | Closes #6169
* KNOWN_BUGS: cmake: generated .pc file contains strange entriesDaniel Stenberg2020-11-181-0/+8
| | | | Closes #6167
* KNOWN_BUGS: cmake uses -lpthread instead of Threads::ThreadsDaniel Stenberg2020-11-181-0/+5
| | | | Closes #6166
* KNOWN_BUGS: cmake build in Linux links libcurl to libdlDaniel Stenberg2020-11-181-2/+9
| | | | Closes #6165
* KNOWN_BUGS: make a new section for cmake topicsDaniel Stenberg2020-11-181-26/+30
| | | | Closes #6219
* cirrus: build with FreeBSD 12.2 in CirrusCIEmil Engler2020-11-171-0/+1
| | | | Closes #6211
* tests/*server.py: close log file after each log lineMarc Hoersken2020-11-145-18/+41
| | | | | | | | | | | Make sure the log file is not locked once a test has finished and align with the behavior of our logmsg. Rename curl_test_data.py to be a general util.py. Format and sort Python imports with isort/VSCode. Bug: #6058 Closes #6206
* CURLOPT_HSTS.3: document the file formatDaniel Stenberg2020-11-131-0/+15
| | | | Closes #6205
* RELEASE-NOTES: syncedDaniel Stenberg2020-11-131-10/+27
|
* release-notes.pl: detect #[number] better for Ref: etcDaniel Stenberg2020-11-131-1/+1
|
* curl: only warn not fail, if not finding the home dirDaniel Stenberg2020-11-131-20/+15
| | | | | | | | ... as there's no good reason to error out completely. Reported-by: Andreas Fischer Fixes #6200 Closes #6201
* httpput-postfields.c: new example doing PUT with POSTFIELDSDaniel Stenberg2020-11-132-1/+102
| | | | | | Proposed-by: Jeroen Ooms Ref: #6186 Closes #6188
* cmake: correctly handle linker flags for static libsTobias Hieta2020-11-102-4/+1
| | | | | | | | | | | | | curl CMake was setting the the EXE flags for static libraries which made the /manifest:no flag ended up when linking the static library, which is not a valid flag for lib.exe or llvm-lib.exe and caused llvm-lib to exit with an error. The better way to handle this is to make sure that we pass the correct linker flags to CMAKE_STATIC_LINKER_FLAGS instead. Reviewed-by: Jakub Zakrzewski Closes #6195
* cmake: don't pass -fvisibility=hidden to clang-cl on WindowsTobias Hieta2020-11-101-1/+1
| | | | | | | | | | | | | When using clang-cl on windows -fvisibility=hidden is not an known argument. Instead it behaves exactly like MSVC in this case. So let's make sure we take that path. In CMake clang-cl sets both CMAKE_C_COMPILER_ID=clang and MSVC get's defined since clang-cl is basically a MSVC emulator. So guarding like we do in this patch seems logical. Reviewed-by: Jakub Zakrzewski Closes #6194
* http_proxy: use enum with state names for 'keepon'bagder/http-proxy-keeponDaniel Stenberg2020-11-102-11/+15
| | | | | | | | | To make the code clearer, change the 'keepon' from an int to an enum with better state names. Reported-by: Niranjan Hasabnis Bug: https://curl.se/mail/lib-2020-11/0026.html Closes #6193