<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/curl.git/lib/transfer.c, branch bagder/test493-https</title>
<subtitle>github.com: bagder/curl.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/'/>
<entry>
<title>transfer: clear 'referer' in declaration</title>
<updated>2021-03-29T07:45:53+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-03-29T07:32:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=6bb028dbda6cbfe83f66de773544f71e4813160f'/>
<id>6bb028dbda6cbfe83f66de773544f71e4813160f</id>
<content type='text'>
To silence (false positive) compiler warnings about it.

Follow-up to 7214288898f5625

Reviewed-by: Marcel Raad
Closes #6810
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To silence (false positive) compiler warnings about it.

Follow-up to 7214288898f5625

Reviewed-by: Marcel Raad
Closes #6810
</pre>
</div>
</content>
</entry>
<entry>
<title>transfer: strip credentials from the auto-referer header field</title>
<updated>2021-03-28T21:19:55+00:00</updated>
<author>
<name>Viktor Szakats</name>
<email>commit@vsz.me</email>
</author>
<published>2021-02-23T13:54:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=7214288898f5625a6cc196e22a74232eada7861c'/>
<id>7214288898f5625a6cc196e22a74232eada7861c</id>
<content type='text'>
Added test 2081 to verify.

CVE-2021-22876

Bug: https://curl.se/docs/CVE-2021-22876.html
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added test 2081 to verify.

CVE-2021-22876

Bug: https://curl.se/docs/CVE-2021-22876.html
</pre>
</div>
</content>
</entry>
<entry>
<title>urldata: merge "struct DynamicStatic" into "struct UrlState"</title>
<updated>2021-03-26T22:19:20+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-03-26T13:25:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=95cbcec8f986492766c4be3922af1e7644e1e7c5'/>
<id>95cbcec8f986492766c4be3922af1e7644e1e7c5</id>
<content type='text'>
Both were used for the same purposes and there was no logical separation
between them. Combined, this also saves 16 bytes in less holes in my
test build.

Closes #6798
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Both were used for the same purposes and there was no logical separation
between them. Combined, this also saves 16 bytes in less holes in my
test build.

Closes #6798
</pre>
</div>
</content>
</entry>
<entry>
<title>http: use credentials from transfer, not connection</title>
<updated>2021-02-13T21:36:15+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-02-12T09:27:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=46620b97431e19c53ce82e55055c85830f088cf4'/>
<id>46620b97431e19c53ce82e55055c85830f088cf4</id>
<content type='text'>
HTTP auth "accidentally" worked before this cleanup since the code would
always overwrite the connection credentials with the credentials from
the most recent transfer and since HTTP auth is typically done first
thing, this has not been an issue. It was still wrong and subject to
possible race conditions or future breakage if the sequence of functions
would change.

The data.set.str[] strings MUST remain unmodified exactly as set by the
user, and the credentials to use internally are instead set/updated in
state.aptr.*

Added test 675 to verify different credentials used in two requests done
over a reused HTTP connection, which previously behaved wrongly.

Fixes #6542
Closes #6545
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
HTTP auth "accidentally" worked before this cleanup since the code would
always overwrite the connection credentials with the credentials from
the most recent transfer and since HTTP auth is typically done first
thing, this has not been an issue. It was still wrong and subject to
possible race conditions or future breakage if the sequence of functions
would change.

The data.set.str[] strings MUST remain unmodified exactly as set by the
user, and the credentials to use internally are instead set/updated in
state.aptr.*

Added test 675 to verify different credentials used in two requests done
over a reused HTTP connection, which previously behaved wrongly.

Fixes #6542
Closes #6545
</pre>
</div>
</content>
</entry>
<entry>
<title>urldata: don't touch data-&gt;set.httpversion at run-time</title>
<updated>2021-02-12T07:13:37+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-02-11T15:30:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=88dd1a8a115b1f5ece26fd8941b4464973b7d913'/>
<id>88dd1a8a115b1f5ece26fd8941b4464973b7d913</id>
<content type='text'>
Rename it to 'httpwant' and make a cloned field in the state struct as
well for run-time updates.

Also: refuse non-supported HTTP versions. Verified with test 129.

Closes #6585
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rename it to 'httpwant' and make a cloned field in the state struct as
well for run-time updates.

Also: refuse non-supported HTTP versions. Verified with test 129.

Closes #6585
</pre>
</div>
</content>
</entry>
<entry>
<title>ftp: add 'list_only' to the transfer state struct</title>
<updated>2021-02-09T13:06:28+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-02-08T15:40:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=528f71c2ecdbb03117af226978804148d69a1007'/>
<id>528f71c2ecdbb03117af226978804148d69a1007</id>
<content type='text'>
and rename it from 'ftp_list_only' since it is also used for SSH and
POP3. The state is updated internally for 'type=D' FTP URLs.

Added test case 1570 to verify.

Closes #6578
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
and rename it from 'ftp_list_only' since it is also used for SSH and
POP3. The state is updated internally for 'type=D' FTP URLs.

Added test case 1570 to verify.

Closes #6578
</pre>
</div>
</content>
</entry>
<entry>
<title>ftp: add 'prefer_ascii' to the transfer state struct</title>
<updated>2021-02-09T13:06:28+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-02-08T14:56:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=115c9e27f53809a254fba44b023bea92f4d4dcd0'/>
<id>115c9e27f53809a254fba44b023bea92f4d4dcd0</id>
<content type='text'>
... and make sure the code never updates 'set.prefer_ascii' as it breaks
handle reuse which should use the setting as the user specified it.

Added test 1569 to verify: it first makes an FTP transfer with ';type=A'
and then another without type on the same handle and the second should
then use binary. Previously, curl failed this.

Closes #6578
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... and make sure the code never updates 'set.prefer_ascii' as it breaks
handle reuse which should use the setting as the user specified it.

Added test 1569 to verify: it first makes an FTP transfer with ';type=A'
and then another without type on the same handle and the second should
then use binary. Previously, curl failed this.

Closes #6578
</pre>
</div>
</content>
</entry>
<entry>
<title>urldata: move 'followlocation' to UrlState</title>
<updated>2021-02-09T07:22:45+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-02-08T22:00:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=f1e5e498796d3f71e3c22e9406796e9ab6c82d1f'/>
<id>f1e5e498796d3f71e3c22e9406796e9ab6c82d1f</id>
<content type='text'>
As this is a state variable it does not belong in UserDefined which is
used to store values set by the user.

Closes #6582
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As this is a state variable it does not belong in UserDefined which is
used to store values set by the user.

Closes #6582
</pre>
</div>
</content>
</entry>
<entry>
<title>transfer: fix GCC 10 warning with flag '-Wint-in-bool-context'</title>
<updated>2021-01-29T13:47:28+00:00</updated>
<author>
<name>Michał Antoniak</name>
<email>m.antoniak@posnet.com.pl</email>
</author>
<published>2021-01-29T08:20:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=1c1158a9dd2d2f89ba32f5c95461dd63a18e86ad'/>
<id>1c1158a9dd2d2f89ba32f5c95461dd63a18e86ad</id>
<content type='text'>
... and return the error code from the Curl_mime_rewind call.

Closes #6537
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... and return the error code from the Curl_mime_rewind call.

Closes #6537
</pre>
</div>
</content>
</entry>
<entry>
<title>avoid warning: enum constant in boolean context</title>
<updated>2021-01-29T13:47:26+00:00</updated>
<author>
<name>Michał Antoniak</name>
<email>m.antoniak@posnet.com.pl</email>
</author>
<published>2021-01-27T13:40:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=0cf5670c54bc6f94cea714d71bacab234ea23c51'/>
<id>0cf5670c54bc6f94cea714d71bacab234ea23c51</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
