History log of /curl/lib/urldata.h (Results 126 – 150 of 1086)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 0f233419 08-Aug-2022 Daniel Stenberg

connect: set socktype/protocol correctly

So that an address used from the DNS cache that was previously used for
QUIC can be reused for TCP and vice versa.

To make this possible

connect: set socktype/protocol correctly

So that an address used from the DNS cache that was previously used for
QUIC can be reused for TCP and vice versa.

To make this possible, set conn->transport to "unix" for unix domain
connections ... and store the transport struct field in an unsigned char
to use less space.

Reported-by: ウさん
Fixes #9274
Closes #9276

show more ...


# 8cd57d6e 20-Jul-2022 Daniel Stenberg

urldata: change second proxytype field to unsigned char to match

To avoid "enumerated type mixed with another type"

Closes #9179


# dcbc9226 20-Jul-2022 Daniel Stenberg

urldata: make state.httpreq an unsigned char

To match set.method used for the same purpose.

Closes #9179


# fe8f1512 19-Jul-2022 Daniel Stenberg

ftp: use a correct expire ID for timer expiry

This was an accurate error pointed out by the icc warning: enumerated
type mixed with another type

Ref: #9179
Closes #9184


# fe93bb4d 17-Jul-2022 Daniel Stenberg

doh: move doh related struct definitions to doh.h

and make 'dnstype' in 'struct dnsprobe' use the DNStype to fix the icc compiler warning:

doh.c(924): error #188: enumerated type

doh: move doh related struct definitions to doh.h

and make 'dnstype' in 'struct dnsprobe' use the DNStype to fix the icc compiler warning:

doh.c(924): error #188: enumerated type mixed with another type

Reported-by: Matthew Thompson
Ref #9156
Closes #9174

show more ...


# 1b3d59ac 04-Jul-2022 Daniel Stenberg

urldata: reduce size of four ftp related members

ftp_filemethod, ftpsslauth and ftp_ccc are now uchars

accepttimeout is now unsigned int - almost 50 days ought to be enough
for

urldata: reduce size of four ftp related members

ftp_filemethod, ftpsslauth and ftp_ccc are now uchars

accepttimeout is now unsigned int - almost 50 days ought to be enough
for this value.

Closes #9106

show more ...


# dcb7d4f9 04-Jul-2022 Daniel Stenberg

urldata: reduce three type-members from int to uchar

- timecondition
- proxytype
- method

... previously used their enum type in the struct, which made them
unnecesar

urldata: reduce three type-members from int to uchar

- timecondition
- proxytype
- method

... previously used their enum type in the struct, which made them
unnecesarily large.

Closes #9105

show more ...


# 671cc8e1 04-Jul-2022 Daniel Stenberg

urldata: make 'ftp_create_missing_dirs' a uchar

It only ever holds the values 0-2.

Closes #9103


# 3622bf4e 04-Jul-2022 Daniel Stenberg

urldata: change 4 timeouts to unsigned int from long

They're not used for that long times anyway, 32 bit milliseconds is long
enough.

Closes #9101


# fe14ff61 04-Jul-2022 Daniel Stenberg

urldata: make 'use_netrc' a uchar

Closes #9102


# 3fa343a3 04-Jul-2022 Daniel Stenberg

urldata: make 'buffer_size' an unsigned int

It is already capped at READBUFFER_MAX which fits easily in 32 bits.

Closes #9098


# cb17b12b 04-Jul-2022 Daniel Stenberg

urldata: remove the unused 'rtspversion' struct member

Closes #9100


# 1d85d2e4 04-Jul-2022 Daniel Stenberg

urldata: make 'use_port' an usigned short

... instead of a long. It is already enforced to not attempt to set any
value outside of 16 bits unsigned.

Closes #9099


# ccc8092b 04-Jul-2022 Daniel Stenberg

urldata: store dns cache timeout in an int

68 years ought to be enough for most.

Closes #9097


# e6f8445e 13-Jun-2022 Daniel Stenberg

setopt: add CURLOPT_PROTOCOLS_STR and CURLOPT_REDIR_PROTOCOLS_STR

... as replacements for deprecated CURLOPT_PROTOCOLS and
CURLOPT_REDIR_PROTOCOLS as these new ones do not risk running i

setopt: add CURLOPT_PROTOCOLS_STR and CURLOPT_REDIR_PROTOCOLS_STR

... as replacements for deprecated CURLOPT_PROTOCOLS and
CURLOPT_REDIR_PROTOCOLS as these new ones do not risk running into the
32 bit limit the old ones are facing.

CURLINFO_PROTCOOL is now deprecated.

The curl tool is updated to use the new options.

Added test 1597 to verify the libcurl protocol parser.

Closes #8992

show more ...


# 193215db 04-Jul-2022 Daniel Stenberg

digest: simplify a switch() to a simple if


# 48d7064a 26-Jun-2022 Daniel Stenberg

cookie: apply limits

- Send no more than 150 cookies per request
- Cap the max length used for a cookie: header to 8K
- Cap the max number of received Set-Cookie: headers to 50

cookie: apply limits

- Send no more than 150 cookies per request
- Cap the max length used for a cookie: header to 8K
- Cap the max number of received Set-Cookie: headers to 50

Bug: https://curl.se/docs/CVE-2022-32205.html
CVE-2022-32205
Reported-by: Harry Sintonen
Closes #9048

show more ...


# ad9bc597 17-May-2022 max.mehl

copyright: make repository REUSE compliant

Add licensing and copyright information for all files in this repository. This
either happens in the file itself as a comment header or in the

copyright: make repository REUSE compliant

Add licensing and copyright information for all files in this repository. This
either happens in the file itself as a comment header or in the file
`.reuse/dep5`.

This commit also adds a Github workflow to check pull requests and adapts
copyright.pl to the changes.

Closes #8869

show more ...


# 15445139 04-Nov-2021 michael musset

libssh2: add CURLOPT_SSH_HOSTKEYFUNCTION

The callback set by CURLOPT_SSH_HOSTKEYFUNCTION is called to check
wether or not the connection should continue.

The host key is passed

libssh2: add CURLOPT_SSH_HOSTKEYFUNCTION

The callback set by CURLOPT_SSH_HOSTKEYFUNCTION is called to check
wether or not the connection should continue.

The host key is passed in argument with a custom handle for the
application.

It overrides CURLOPT_SSH_KNOWNHOSTS

Closes #7959

show more ...


# 45de940c 01-Jun-2022 Daniel Stenberg

lib: make more protocol specific struct fields #ifdefed

... so that they don't take up space if the protocols are disabled in
the build.

Closes #8944


# 8b1ae285 31-May-2022 Daniel Stenberg

urldata: store tcp_keepidle and tcp_keepintvl as ints

They can't be set larger than INT_MAX in the setsocket API calls.

Also document the max values in their respective man pages.

urldata: store tcp_keepidle and tcp_keepintvl as ints

They can't be set larger than INT_MAX in the setsocket API calls.

Also document the max values in their respective man pages.

Closes #8940

show more ...


# 46519458 31-May-2022 Daniel Stenberg

urldata: reduce size of a few struct fields

When the values are never larger than 32 bit, ints are better than longs.

Closes #8940


# b1c1df0b 31-May-2022 Daniel Stenberg

urldata: remove three unused booleans from struct UserDefined

- is_fwrite_set
- free_referer
- strip_path_slash

Closes #8940


# c9b60f00 24-May-2022 Daniel Stenberg

http: restore header folding behavior

Folded header lines will now get passed through like before. The headers
API is adapted and will provide the content unfolded.

Added test 1

http: restore header folding behavior

Folded header lines will now get passed through like before. The headers
API is adapted and will provide the content unfolded.

Added test 1274 and extended test 1940 to verify.

Reported-by: Petr Pisar
Fixes #8844
Closes #8899

show more ...


# 8d86718f 17-May-2022 Daniel Stenberg

opts: deprecate RANDOM_FILE and EGDSOCKET

These two options were only ever used for the OpenSSL backend for
versions before 1.1.0. They were never used for other backends and they
ar

opts: deprecate RANDOM_FILE and EGDSOCKET

These two options were only ever used for the OpenSSL backend for
versions before 1.1.0. They were never used for other backends and they
are not used with recent OpenSSL versions. They were never used much by
applications.

The defines RANDOM_FILE and EGD_SOCKET can still be set at build-time
for ancient EOL OpenSSL versions.

Closes #8670

show more ...


12345678910>>...44