Patrick Monnerat
cdc1da9120
openldap: several minor improvements
...
- Early check proper LDAP URL syntax. Reject URLs with a userinfo part.
- Use dynamic memory for ldap_init_fd() URL rather than a
stack-allocated buffer.
- Never chase referrals: supporting it would require additional parallel
connections and alternate authentication credentials.
- Do not wait 1 microsecond while polling/reading query response data.
- Store last received server code for retrieval with CURLINFO_RESPONSE_CODE.
Closes #8140
2021-12-15 08:07:53 +01:00
MAntoniak
39406280bb
misc: remove unused doh flags when CURL_DISABLE_DOH is defined
...
Closes #8148
2021-12-15 08:01:21 +01:00
Daniel Stenberg
867ad1cd8b
mbedtls: fix CURLOPT_SSLCERT_BLOB
...
The memory passed to mbedTLS for this needs to be null terminated.
Reported-by: Florian Van Heghe
Closes #8146
2021-12-14 15:35:54 +01:00
Daniel Stenberg
64e8bf9ff4
asyn-ares: ares_getaddrinfo needs no happy eyeballs timer
...
Closes #8142
2021-12-14 15:34:43 +01:00
Daniel Stenberg
771ca5d000
mailmap: add Yongkang Huang
...
From #8141
2021-12-14 14:48:30 +01:00
MrDwZ
1cdfdcde3b
check ssl_config when re-use proxy connection
2021-12-14 14:46:10 +01:00
Daniel Stenberg
9d0d16d435
mbedtls: do a separate malloc for ca_info_blob
...
Since the mbedTLS API requires the data to the null terminated.
Follow-up to 456c53730d
Fixes #8139
Closes #8145
2021-12-14 11:52:14 +01:00
Marc Hoersken
f03cc1b7a6
CI: build examples for additional code verification
...
Some CIs already build them, let's do it on more of them.
Reviewed-by: Daniel Stenberg
Follow up to #7690 and 77311f420a
Replaces #7591
Closes #7922
2021-12-14 07:53:39 +01:00
Marc Hoersken
77311f420a
docs/examples: workaround broken -Wno-pedantic-ms-format
...
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
2021-12-14 07:52:26 +01:00
Marc Hoersken
52202691d1
tests/data/test302[12]: fix MSYS2 path conversion of hostpubsha256
...
Ref: https://www.msys2.org/wiki/Porting/#filesystem-namespaces
Reviewed-by: Marcel Raad
Reviewed-by: Jay Satiro
Fixes #8084
Closes #8138
2021-12-14 07:43:16 +01:00
Patrick Monnerat
2300ad26d3
openldap: simplify ldif generation code
...
and take care of zero-length values, avoiding conversion to base64
and/or trailing spaces.
Closes #8136
2021-12-13 15:57:19 +01:00
Daniel Stenberg
e75bc3ae3f
example/progressfunc: remove code for old libcurls
...
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
2021-12-13 15:56:32 +01:00
x2018
d6ff35b5a5
sha256/md5: return errors when init fails
...
Closes #8133
2021-12-13 15:54:16 +01:00
Daniel Stenberg
da97316596
TODO: 13.3 Defeat TLS fingerprinting
...
Closes #8119
2021-12-11 22:30:27 +01:00
Daniel Stenberg
39a9de3cec
RELEASE-NOTES: synced
2021-12-11 21:49:24 +01:00
Patrick Monnerat
b40e4c0d47
openldap: process search query response messages one by one
...
Upon receiving large result sets, this reduces memory consumption and
allows starting to output results while the transfer is still in
progress.
Closes #8101
2021-12-11 12:54:50 +01:00
Daniel Stenberg
254f7bd78a
hash: lazy-alloc the table in Curl_hash_add()
...
This makes Curl_hash_init() infallible which saves error paths.
Closes #8132
2021-12-10 23:16:43 +01:00
Daniel Stenberg
e43ad4b474
multi: cleanup the socket hash when destroying it
...
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
2021-12-10 17:02:04 +01:00
Daniel Stenberg
439aa50211
test1156: fixup the stdout check for Windows
...
It is not text mode.
Follow-up to 6f73e68d18
Closes #8134
2021-12-10 17:00:37 +01:00
Daniel Stenberg
96c815c22e
test1528: enable for hyper
...
Closes #8128
2021-12-09 23:32:39 +01:00
Daniel Stenberg
b63bb77c79
test1527: enable for hyper
...
Closes #8128
2021-12-09 23:32:36 +01:00
Daniel Stenberg
34f090a5cc
test1526: enable for hyper
...
Closes #8128
2021-12-09 23:32:33 +01:00
Daniel Stenberg
8d0d5859e0
test1525: slightly tweaked for hyper
...
Closes #8128
2021-12-09 23:32:25 +01:00
Daniel Stenberg
6f73e68d18
test1156: enable for hyper
...
Minor reorg of the lib1156 code and it works fine for hyper.
Closes #8127
2021-12-09 23:30:34 +01:00
Daniel Stenberg
fde1f1bfe9
test661: enable for hyper
...
Closes #8126
2021-12-09 23:29:04 +01:00
Daniel Stenberg
e30b2064b7
docs: fix proselint nits
...
- remove a lot of exclamation marks
- use consistent spaces (1, not 2)
- use better words at some places
Closes #8123
2021-12-09 23:16:46 +01:00
RekGRpth
5a3775fadf
BINDINGS.md: add cURL client for PostgreSQL
...
Closes #8125
2021-12-09 14:34:52 +01:00
RekGRpth
98ae5d8ebc
CURLSHOPT_USERDATA.3: fix copy-paste mistake
...
Closes #8124
2021-12-09 14:31:22 +01:00
Daniel Stenberg
d6934d393d
docs: fix minor nroff format nits
...
Repairs test 1140
Follow-up to 436cdf8204
2021-12-09 13:18:27 +01:00
Daniel Stenberg
f6151dd9ba
docs/URL-SYNTAX.md: space is not fine in a given URL
2021-12-09 11:32:09 +01:00
Daniel Stenberg
436cdf8204
curl_multi_perform/socket_action.3: clarify what errors mean
...
An error returned from one of these funtions mean that ALL still ongoing
transfers are to be considered failed.
Ref: #8114
Closes #8120
2021-12-09 10:23:19 +01:00
Daniel Stenberg
e067f46c4d
libcurl-errors.3: add CURLM_ABORTED_BY_CALLBACK
...
Follow-up to #8089 (2b3dd01
)
Closes #8116
2021-12-09 10:21:36 +01:00
Daniel Stenberg
8d8f384f32
hash: add asserts to help detect bad usage
...
For example trying to add entries after the hash has been "cleaned up"
Closes #8115
2021-12-09 10:18:41 +01:00
Daniel Stenberg
f443834c7a
lib530: abort on curl_multi errors
...
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
2021-12-09 10:16:24 +01:00
Daniel Stenberg
e28628ffc2
FAQ: we never pronounced it "see URL", we say "kurl"
2021-12-08 10:12:19 +01:00
Daniel Stenberg
f72b8f9884
RELEASE-NOTES: synced
2021-12-07 17:16:38 +01:00
Daniel Stenberg
51a2e3ff1b
CURLOPT_RESOLVE.3: minor polish
...
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
2021-12-07 17:13:55 +01:00
Daniel Stenberg
45c6448e68
test1556: adjust for hyper
...
Closes #8105
2021-12-07 17:11:51 +01:00
Daniel Stenberg
1bea122114
test1554: adjust for hyper
...
Closes #8104
2021-12-07 17:09:14 +01:00
Daniel Stenberg
8f2fb3cdbd
retry-all-errors.d: make the example complete
...
... as it needs --retry too to work
2021-12-07 10:10:51 +01:00
Daniel Stenberg
05f899c842
TODO: 5.7 Require HTTP version X or higher
...
Closes #7980
2021-12-06 17:03:00 +01:00
Daniel Stenberg
1a4c14cbac
CURLOPT_STDERR.3: does not work with libcurl as a win32 DLL
...
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
2021-12-06 16:43:28 +01:00
Daniel Stenberg
2b3dd01b77
multi: handle errors returned from socket/timer callbacks
...
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
2021-12-06 14:55:52 +01:00
Daniel Stenberg
b3f9c1aa09
http2:set_transfer_url() return early on OOM
...
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
2021-12-06 14:32:29 +01:00
Daniel Stenberg
bc064a8177
tool_parsecfg: use correct free() call to free memory
...
Detected by Coverity. CID 1494642.
Follow-up from 2be1aa619b
Closes #8099
2021-12-06 11:00:30 +01:00
Daniel Stenberg
75b31ce626
tool_operate: fix potential memory-leak
...
A 'CURLU *' would leak if url_proto() is called with no URL.
Detected by Coverity. CID 1494643.
Follow-up to 18270893ab
Closes #8098
2021-12-06 09:59:38 +01:00
Patrick Monnerat
a40160aee8
openldap: implement STARTTLS
...
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
2021-12-06 07:53:04 +01:00
Jun Tseng
a6e2643433
curl_easy_unescape.3: call curl_easy_cleanup in example
...
Closes #8097
2021-12-06 07:50:37 +01:00
Jun Tseng
a42f60d94f
curl_easy_escape.3: call curl_easy_cleanup in example
...
Closes #8097
2021-12-06 07:50:29 +01:00
Daniel Stenberg
a82fe5d2d0
tool_listhelp: sync
...
Follow-up to 172068b76f
2021-12-05 23:14:11 +01:00