summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fixup init the result variablebagder/x509-errorsDaniel Stenberg2021-12-151-1/+1
|
* x509asn1: return early on errorsDaniel Stenberg2021-12-141-38/+87
| | | | | Overhaul to make sure functions that detect errors bail out early with error rather than trying to continue and risk hiding the problem.
* mbedtls: fix CURLOPT_SSLCERT_BLOBDaniel Stenberg2021-12-141-3/+10
| | | | | | | The memory passed to mbedTLS for this needs to be null terminated. Reported-by: Florian Van Heghe Closes #8146
* asyn-ares: ares_getaddrinfo needs no happy eyeballs timerDaniel Stenberg2021-12-141-0/+4
| | | | Closes #8142
* mailmap: add Yongkang HuangDaniel Stenberg2021-12-141-0/+1
| | | | From #8141
* check ssl_config when re-use proxy connectionMrDwZ2021-12-141-7/+6
|
* mbedtls: do a separate malloc for ca_info_blobDaniel Stenberg2021-12-141-19/+17
| | | | | | | | | Since the mbedTLS API requires the data to the null terminated. Follow-up to 456c53730d21b1fad0c7f72c1817 Fixes #8139 Closes #8145
* CI: build examples for additional code verificationMarc Hoersken2021-12-143-4/+5
| | | | | | | | | | Some CIs already build them, let's do it on more of them. Reviewed-by: Daniel Stenberg Follow up to #7690 and 77311f420a541a0de5b3014e0e40ff8b4205d4af Replaces #7591 Closes #7922
* docs/examples: workaround broken -Wno-pedantic-ms-formatMarc Hoersken2021-12-149-45/+45
| | | | | | | | | | | | Avoid CURL_FORMAT_CURL_OFF_T by using unsigned long instead. Improve size_t to long conversion in imap-append.c example. Ref: https://github.com/curl/curl/issues/6079 Ref: https://github.com/curl/curl/pull/6082 Assisted-by: Jay Satiro Reviewed-by: Daniel Stenberg Preparation of #7922
* tests/data/test302[12]: fix MSYS2 path conversion of hostpubsha256Marc Hoersken2021-12-142-0/+10
| | | | | | | | | | Ref: https://www.msys2.org/wiki/Porting/#filesystem-namespaces Reviewed-by: Marcel Raad Reviewed-by: Jay Satiro Fixes #8084 Closes #8138
* openldap: simplify ldif generation codePatrick Monnerat2021-12-131-62/+47
| | | | | | | and take care of zero-length values, avoiding conversion to base64 and/or trailing spaces. Closes #8136
* example/progressfunc: remove code for old libcurlsDaniel Stenberg2021-12-131-53/+4
| | | | | | | | 7.61.0 is over three years old now, remove all #ifdefs for handling ancient libcurl versions so that the example gets easier to read and understand Closes #8137
* sha256/md5: return errors when init failsx20182021-12-139-40/+73
| | | | Closes #8133
* TODO: 13.3 Defeat TLS fingerprintingDaniel Stenberg2021-12-111-2/+11
| | | | Closes #8119
* RELEASE-NOTES: syncedDaniel Stenberg2021-12-111-4/+30
|
* openldap: process search query response messages one by onePatrick Monnerat2021-12-111-157/+114
| | | | | | | | Upon receiving large result sets, this reduces memory consumption and allows starting to output results while the transfer is still in progress. Closes #8101
* hash: lazy-alloc the table in Curl_hash_add()bagder/hash-lazyallocDaniel Stenberg2021-12-1010-82/+77
| | | | | | This makes Curl_hash_init() infallible which saves error paths. Closes #8132
* multi: cleanup the socket hash when destroying itbagder/sockhash-destroyDaniel Stenberg2021-12-101-6/+27
| | | | | | | | | Since each socket hash entry may themselves have a hash table in them, the destroying of the socket hash needs to make sure all the subhashes are also correctly destroyed to avoid leaking memory. Fixes #8129 Closes #8131
* test1156: fixup the stdout check for WindowsDaniel Stenberg2021-12-101-1/+1
| | | | | | | | It is not text mode. Follow-up to 6f73e68d182 Closes #8134
* test1528: enable for hyperDaniel Stenberg2021-12-092-2/+1
| | | | Closes #8128
* test1527: enable for hyperDaniel Stenberg2021-12-092-1/+2
| | | | Closes #8128
* test1526: enable for hyperDaniel Stenberg2021-12-092-1/+2
| | | | Closes #8128
* test1525: slightly tweaked for hyperDaniel Stenberg2021-12-092-1/+2
| | | | Closes #8128
* test1156: enable for hyperDaniel Stenberg2021-12-093-29/+35
| | | | | | Minor reorg of the lib1156 code and it works fine for hyper. Closes #8127
* test661: enable for hyperDaniel Stenberg2021-12-091-1/+0
| | | | Closes #8126
* docs: fix proselint nitsDaniel Stenberg2021-12-0913-125/+123
| | | | | | | | - remove a lot of exclamation marks - use consistent spaces (1, not 2) - use better words at some places Closes #8123
* BINDINGS.md: add cURL client for PostgreSQLRekGRpth2021-12-091-0/+2
| | | | Closes #8125
* CURLSHOPT_USERDATA.3: fix copy-paste mistakeRekGRpth2021-12-091-1/+1
| | | | Closes #8124
* docs: fix minor nroff format nitsDaniel Stenberg2021-12-092-2/+2
| | | | | | Repairs test 1140 Follow-up to 436cdf82041
* docs/URL-SYNTAX.md: space is not fine in a given URLDaniel Stenberg2021-12-091-7/+10
|
* curl_multi_perform/socket_action.3: clarify what errors meanDaniel Stenberg2021-12-092-2/+12
| | | | | | | | An error returned from one of these funtions mean that ALL still ongoing transfers are to be considered failed. Ref: #8114 Closes #8120
* libcurl-errors.3: add CURLM_ABORTED_BY_CALLBACKDaniel Stenberg2021-12-091-0/+2
| | | | | | Follow-up to #8089 (2b3dd01) Closes #8116
* hash: add asserts to help detect bad usageDaniel Stenberg2021-12-091-2/+7
| | | | | | For example trying to add entries after the hash has been "cleaned up" Closes #8115
* lib530: abort on curl_multi errorsDaniel Stenberg2021-12-091-14/+33
| | | | | | | | | This makes torture tests run more proper. Also add an assert to trap situations where it would end up with no sockets to wait for. Closes #8121
* FAQ: we never pronounced it "see URL", we say "kurl"Daniel Stenberg2021-12-081-1/+1
|
* RELEASE-NOTES: syncedDaniel Stenberg2021-12-071-7/+27
|
* CURLOPT_RESOLVE.3: minor polishDaniel Stenberg2021-12-071-26/+34
| | | | | | | | | | Minor rephrasing for some explanations. Put the format strings in stand-alone lines with .nf/.fi to be easier to spot. Move "added in" to AVAILABILITY Closed #8110
* test1556: adjust for hyperDaniel Stenberg2021-12-073-16/+15
| | | | Closes #8105
* test1554: adjust for hyperDaniel Stenberg2021-12-072-1/+6
| | | | Closes #8104
* retry-all-errors.d: make the example completeDaniel Stenberg2021-12-071-1/+1
| | | | ... as it needs --retry too to work
* TODO: 5.7 Require HTTP version X or higherDaniel Stenberg2021-12-061-0/+9
| | | | Closes #7980
* CURLOPT_STDERR.3: does not work with libcurl as a win32 DLLDaniel Stenberg2021-12-061-0/+5
| | | | | | | | | | This is the exact same limitation already documented for CURLOPT_WRITEDATA but should be clarified here. It also has a different work-around. Reported-by: Stephane Pellegrino Bug: https://github.com/curl/curl/issues/8102 Closes #8103
* multi: handle errors returned from socket/timer callbacksDaniel Stenberg2021-12-0614-67/+574
| | | | | | | | | | | | The callbacks were partially documented to support this. Now the behavior is documented and returning error from either of these callbacks will effectively kill all currently ongoing transfers. Added test 530 to verify Reported-by: Marcelo Juchem Fixes #8083 Closes #8089
* http2:set_transfer_url() return early on OOMDaniel Stenberg2021-12-061-1/+4
| | | | | | | | | If curl_url() returns NULL this should return early to avoid mistakes - even if right now the subsequent function invokes are all OK. Coverity (wrongly) pointed out this as a NULL deref. Closes #8100
* tool_parsecfg: use correct free() call to free memoryDaniel Stenberg2021-12-061-2/+2
| | | | | | | Detected by Coverity. CID 1494642. Follow-up from 2be1aa619bca Closes #8099
* tool_operate: fix potential memory-leakDaniel Stenberg2021-12-061-9/+11
| | | | | | | | A 'CURLU *' would leak if url_proto() is called with no URL. Detected by Coverity. CID 1494643. Follow-up to 18270893abdb19 Closes #8098
* openldap: implement STARTTLSPatrick Monnerat2021-12-065-10/+83
| | | | | | | As this introduces use of CURLOPT_USE_SSL option for LDAP, also check this option in ldap.c as it is not supported by this backend. Closes #8065
* curl_easy_unescape.3: call curl_easy_cleanup in exampleJun Tseng2021-12-061-0/+1
| | | | Closes #8097
* curl_easy_escape.3: call curl_easy_cleanup in exampleJun Tseng2021-12-061-0/+1
| | | | Closes #8097
* tool_listhelp: syncDaniel Stenberg2021-12-051-4/+4
| | | | Follow-up to 172068b76f