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
Damien Walsh
172068b76f
request.d: refer to 'method' rather than 'command'
...
Closes #8094
2021-12-05 23:05:11 +01:00
Daniel Stenberg
de3911e9ce
RELEASE-NOTES: synced
2021-12-03 23:04:04 +01:00
Daniel Stenberg
cdde5414fc
writeout: fix %{http_version} for HTTP/3
...
Output "3" properly when HTTP/3 was used.
Reported-by: Bernat Mut
Fixes #8072
Closes #8092
2021-12-03 23:00:37 +01:00
Daniel Stenberg
92d1aee8b1
urlapi: accept port number zero
...
This is a regression since 7.62.0 (fb30ac5a2d
).
Updated test 1560 accordingly
Reported-by: Brad Fitzpatrick
Fixes #8090
Closes #8091
2021-12-03 22:58:41 +01:00
Mark Dodgson
f67b4d37b7
lift: ignore is a deprecated config option, use ignoreRules
...
Closes #8082
2021-12-03 22:55:51 +01:00
Alessandro Ghedini
3199eb25dc
HTTP3: update quiche build instructions
...
The repo repo was re-organized a bit, so the build instructions need to
be updated.
Closes #8076
2021-12-03 16:38:54 +01:00
Daniel Stenberg
c8a3046555
CURLMOPT_TIMERFUNCTION.3: call it expire time, not interval
...
Since we say it is a non-repating timer
2021-12-02 12:05:48 +01:00
Florian Van Heghe
456c53730d
mbedTLS: include NULL byte in blob data length for CURLOPT_CAINFO_BLOB
...
Fixes #8079
Closes #8081
2021-12-02 11:15:05 +01:00
Wyatt O'Day
7da636cad5
version_win32: Check build number and platform id
...
Prior to this change the build number was not checked during version
comparison, and the platform id was supposed to be checked but wasn't.
Checking the build number is required for enabling "evergreen"
Windows 10/11 features (like TLS 1.3).
Ref: https://github.com/curl/curl/pull/7784
Closes https://github.com/curl/curl/pull/7824
Closes https://github.com/curl/curl/pull/7867
2021-12-02 03:39:14 -05:00
Jay Satiro
3467e89bb9
libssh2: fix error message for sha256 mismatch
...
- On mismatch error show sha256 fingerprint in base64 format.
Prior to this change the fingerprint was mistakenly printed in binary.
2021-12-02 02:19:51 -05:00
x2018
34294a65b2
openssl: check the return value of BIO_new()
...
Closes #8078
2021-12-01 11:51:53 +01:00
Dan Fandrich
470d546048
docs: Update the Reducing Size section
...
Add many more options that can reduce the size of the binary that were
added since the last update. Update the sample minimal binary size for
version 7.80.0.
2021-11-30 18:33:49 -08:00
Dan Fandrich
48cbd8f713
tests: Add some missing keywords to tests
...
These are needed to skip some tests when configure options have disabled
certain features.
2021-11-30 18:32:53 -08:00
Florian Van Heghe
8443f975c0
mbedTLS: add support for CURLOPT_CAINFO_BLOB
...
Closes #8071
2021-11-30 16:19:46 +01:00
Glenn Strauss
aae235b6ba
digest: compute user:realm:pass digest w/o userhash
...
https://datatracker.ietf.org/doc/html/rfc7616#section-3.4.4
... the client MUST calculate a hash of the username after
any other hash calculation ...
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
Closes #8066
2021-11-30 13:57:46 +01:00
Daniel Stenberg
6ad053060d
config.d: update documentation to match the path search
...
Assisted-by: Jay Satiro
2021-11-29 00:57:39 +01:00
Daniel Stenberg
2be1aa619b
tool_findfile: search for a file in the homedir
...
The homedir() function is now renamed into findfile() and iterates over
all the environment variables trying to access the file in question
until it finds it. Last resort is then getpwuid() if
available. Previously it would first try to find a home directory and if
that was set, insist on checking only that directory for the file. This
now returns the full file name it finds.
The Windows specific checks are now done differently too and in this
order:
1 - %USERPROFILE%
2 - %APPDATA%
3 - %USERPROFILE%\\Application Data
The windows order is modified to match how the Windows 10 ssh tool works
when it searches for .ssh/known_hosts.
Reported-by: jeffrson on github
Co-authored-by: Jay Satiro
Fixes #8033
Closes #8035
2021-11-29 00:57:22 +01:00