Daniel Stenberg
db07301fbb
urldata: remove unused struct fields, made more conditional
...
- source_quote, source_prequote and source_postquote have not been used since
5e0d9aea3; September 2006
- make several fields conditional on proxy support
- make three quote struct fields conditional on FTP || SSH
- make 'mime_options' depend on MIME
- make trailer_* fields depend on HTTP
- change 'gssapi_delegation' from long to unsigned char
- make 'localportrange' unsigned short instead of int
- conn->trailer now depends on HTTP
Closes #10147
2022-12-23 08:45:05 +01:00
Daniel Stenberg
f4883ba966
urldata: make set.http200aliases conditional on HTTP being present
...
And make a few SSH-only fields depend on SSH
Closes #10140
2022-12-22 23:07:46 +01:00
Daniel Stenberg
aef4dc892d
md4: fix build with GnuTLS + OpenSSL v1
...
Reported-by: Esdras de Morais da Silva
Fixes #10110
Closes #10142
2022-12-22 23:06:46 +01:00
Daniel Stenberg
31b9a32260
urldata: make 'ftp_create_missing_dirs' depend on FTP || SFTP
...
Closes #10139
2022-12-22 23:04:47 +01:00
John Bampton
80efd3bc61
misc: fix grammar and spelling
...
Closes #10137
2022-12-22 18:07:07 +01:00
Daniel Stenberg
af5999a674
urldata: move the cookefilelist to the 'set' struct
...
The cookiefile entries are set into the handle and should remain set for
the lifetime of the handle so that duplicating it also duplicates the
list. Therefore, the struct field is moved from 'state' to 'set'.
Fixes #10133
Closes #10134
2022-12-22 16:06:37 +01:00
Daniel Stenberg
e4505a1915
strdup: name it Curl_strdup
...
It does not belong in the curlx_ name space as it is never used
externally.
Closes #10132
2022-12-22 14:31:37 +01:00
Nick Banks
72b819f147
msh3: update to v0.5 Release
...
Closes #10125
2022-12-22 14:29:40 +01:00
andy5995
3736c0a209
workflows/linux.yml: merge 3 common packages
...
Closes #10071
2022-12-22 08:59:08 +01:00
Daniel Stenberg
ee583c68d4
docs: mention indirect effects of --insecure
...
Warn users that disabling certficate verification allows servers to
"pollute" curl with data it trusts.
Reported-by: Harry Sintonen
Closes #10126
2022-12-21 23:36:58 +01:00
Daniel Stenberg
07dfbc08bf
SECURITY-PROCESS.md: document severity levels
...
Closes #10118
2022-12-21 16:26:35 +01:00
Daniel Stenberg
5d0cad97a6
RELEASE_NOTES: synced
...
bumped version for new cycle
2022-12-21 15:38:50 +01:00
Marcel Raad
03ac7ab4ad
tool_operate: fix CURLOPT_SOCKS5_GSSAPI_NEC
type
...
`CURLOPT_SOCKS5_GSSAPI_NEC` is a long, while `socks5_gssapi_nec` was
made a bool in commit 4ac64eadf60.
Closes https://github.com/curl/curl/pull/10124
2022-12-21 15:37:54 +01:00
Daniel Stenberg
c12fb3ddaf
RELEASE-NOTES: synced
...
The curl 7.87.0 release
curl-7_87_0
2022-12-21 08:00:59 +01:00
Daniel Stenberg
26959cb74c
THANKS: 40 new contributors from 7.87.0
2022-12-21 08:00:59 +01:00
Daniel Stenberg
565d0ca2b1
http: fix the ::1 comparison for IPv6 localhost for cookies
...
When checking if there is a "secure context", which it is if the
connection is to localhost even if the protocol is HTTP, the comparison
for ::1 was done incorrectly and included brackets.
Reported-by: BratSinot on github
Fixes #10120
Closes #10121
2022-12-20 13:50:15 +01:00
Philip H
5f5660f3a0
CI/spell: actions/checkout@v2 > actions/checkout@v3
2022-12-19 23:15:07 +00:00
Daniel Stenberg
4f20188ac6
smb/telnet: do not free the protocol struct in *_done()
...
It is managed by the generic layer.
Reported-by: Trail of Bits
Closes #10112
2022-12-19 12:33:19 +01:00
Daniel Stenberg
9e71901634
http: use the IDN decoded name in HSTS checks
...
Otherwise it stores the info HSTS into the persistent cache for the IDN
name which will not match when the HSTS status is later checked for
using the decoded name.
Reported-by: Hiroki Kurosawa
Closes #10111
2022-12-19 11:04:15 +01:00
Daniel Stenberg
46441955bf
CURLOPT_DEBUGFUNCTION.3: emphasize that incoming data is "raw"
...
Closes #10106
2022-12-16 15:02:38 +01:00
Xì Gà
6cc18802f8
socks: fix username max size is 255 (0xFF)
...
Closes #10105
Reviewed-by: Daniel Gustafsson
2022-12-16 15:01:05 +01:00
Daniel Stenberg
66f4d50fa6
limit-rate.d: see also --rate
2022-12-16 10:31:13 +01:00
Daniel Stenberg
b151faa083
lib1560: add some basic IDN host name tests
...
Closes #10094
2022-12-15 22:57:08 +01:00
Daniel Stenberg
cc0aaf6e82
idn: rename the files to idn.[ch] and hold all IDN functions
...
Closes #10094
2022-12-15 22:56:58 +01:00
Daniel Stenberg
301812bec2
idn: remove Curl_win32_ascii_to_idn
...
It was not used. Introduce a new IDN header for the prototype(s).
Closes #10094
2022-12-15 22:56:52 +01:00
Daniel Stenberg
590ecb6de5
RELEASE-NOTES: synced
2022-12-15 16:35:18 +01:00
Daniel Stenberg
6f40703ba0
curl_url_get.3: remove spurious backtick
...
Put there by mistake.
Follow-up from 9a8564a92
Closes #10101
2022-12-15 15:56:26 +01:00
Daniel Stenberg
50e781d3ec
socks: fix infof() flag for outputing a char
...
It used to be a 'long', %lu is no longer correct.
Follow-up to 57d2d9b6bed33d
Detected by Coverity CID 1517663
Closes #10100
2022-12-15 15:52:17 +01:00
Daniel Stenberg
50750d097a
ssl-reqd.d: clarify that this is for upgrading connections only
...
Closes #10093
2022-12-15 14:36:37 +01:00
Daniel Stenberg
af0924210b
curl_url_set.3: document CURLU_DISALLOW_USER
...
Closes #10099
2022-12-15 12:38:57 +01:00
Daniel Stenberg
5de6848f10
cmake: set the soname on the shared library
...
Set SONAME and VERSION for platforms we think this works on. Remove
issue from KNOWN_BUGS.
Assisted-by: Jakub Zakrzewski
Closes #10023
2022-12-15 12:36:25 +01:00
Daniel Stenberg
614f78131a
tool_paramhlp: free the proto strings on exit
...
And also make sure that repeated use of the options free the previous
string before it stores a new.
Follow-up from e6f8445edef8e7996d
Closes #10098
2022-12-15 08:28:38 +01:00
Daniel Stenberg
24d494c264
tool_cfgable: free the ssl_ec_curves on exit
...
Follow-up to ede125b7b
Closes #10097
2022-12-15 08:26:04 +01:00
Daniel Stenberg
c20b35ddae
urlapi: reject more bad letters from the host name: &+()
...
Follow-up from eb0167ff7d31d3a5
Extend test 1560 to verify
Closes #10096
2022-12-15 08:23:48 +01:00
Daniel Stenberg
b740f152a8
altsvc: fix rejection of negative port numbers
...
Follow-up to ac612dfeee95
strtoul() accepts a leading minus so better make sure there is none
Extended test 356 somewhat to use a huge negative 64 bit number that
otherwise becomes a low positive number.
Closes #10095
2022-12-15 08:21:20 +01:00
Daniel Stenberg
57d2d9b6be
lib: use size_t or int etc instead of longs
...
Since long is not using a consistent data size in curl builds, making it
often "waste" 32 bits.
Closes #10088
2022-12-14 12:31:01 +01:00
Daniel Stenberg
58f55ba57e
azure: use "unversioned" clang and clang-tools for scanbuild job
...
To make it less fragile
Closes #10092
2022-12-14 12:25:18 +01:00
Daniel Gustafsson
6b19247e79
x509asn1: avoid freeing unallocated pointers
...
When utf8asn1str fails there is no allocation returned, so freeing
the return pointer in **to is at best a no-op and at worst a double-
free bug waiting to happen. The current coding isn't hiding any such
bugs but to future proof, avoid freeing the return value pointer iff
the function failed.
Closes : #10087
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
2022-12-14 10:14:27 +01:00
Emil Engler
a20f99de74
curl_url_set.3: fix typo
...
Closes : #10089
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
2022-12-13 20:29:37 +01:00
Daniel Stenberg
86b4b66c54
test2304: verify websocket handling when connection is closed
2022-12-13 15:13:09 +01:00
Daniel Stenberg
b716511f0f
server/sws: if asked to close connection, skip the websocket handling
2022-12-13 15:13:09 +01:00
Daniel Stenberg
734c1f8909
ws: if no connection is around, return error
...
- curl_ws_send returns CURLE_SEND_ERROR if data->conn is gone
- curl_ws_recv returns CURLE_GOT_NOTHING on connection close
- curl_ws_recv.3: mention new return code for connection close + example
embryo
Closes #10084
2022-12-13 15:13:03 +01:00
Emil Engler
845f020ea5
docs: extend the dump-header documentation
...
This commit extends the documentation of the --dump-header command-line
option to reflect the behavior introduced in 8b1e5df7.
See #10079
Closes #10085
2022-12-13 15:04:31 +01:00
Daniel Stenberg
d4709fa4b7
RELEASE-NOTES: synced
2022-12-12 09:15:50 +01:00
Daniel Stenberg
e6b3725716
styled-output.d: this option does not work on Windows
...
Reported-by: u20221022 on github
Fixes #10082
Closes #10083
2022-12-12 09:07:32 +01:00
Emil Engler
8b1e5df73d
tool: determine the correct fopen option for -D
...
This commit fixes a bug in the dump-header feature regarding the
determination of the second fopen(3) option.
Reported-by: u20221022 on github
See #4753
See #4762
Fixes #10074
Closes #10079
2022-12-12 09:04:51 +01:00
MonkeybreadSoftware
1a88b6b653
docs/curl_ws_send: Fixed typo in websocket docs
...
Replace as with is in relevant sentences.
Closes : #10081
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
2022-12-11 20:52:12 +01:00
Prithvi MK
b80dae232e
c-hyper: fix multi-request mechanism
...
It makes test 565 run fine.
Fixes #8896
Closes #10080
Assisted-by: Daniel Stenberg
2022-12-11 14:15:53 +01:00
andy5995
fd2c9e5e83
page-header: grammar improvement (display transfer rate)
...
Closes #10068
2022-12-11 12:36:36 +01:00
andy5995
d95a575de3
docs/DEPRECATE.md: grammar improvement and sp correction
...
The main thing I wanted to do was fix the spelling of "spent", but I
think this rewording improves the flow of the paragraph.
Closes #10067
2022-12-11 12:35:33 +01:00