<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/curl.git/lib/cookie.h, branch bagder/https-proxy-tests</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>cookies: change argument type for Curl_flush_cookies</title>
<updated>2019-10-03T20:56:28+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2019-10-03T12:29:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=249541f12f1b03559faa4f96861fc4e6725e3f16'/>
<id>249541f12f1b03559faa4f96861fc4e6725e3f16</id>
<content type='text'>
The second argument is really a 'bool' so use that and pass in TRUE/FALSE
to make it clear.

Closes #4455
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The second argument is really a 'bool' so use that and pass in TRUE/FALSE
to make it clear.

Closes #4455
</pre>
</div>
</content>
</entry>
<entry>
<title>altsvc: Fix building with cookies disables</title>
<updated>2019-04-20T20:46:21+00:00</updated>
<author>
<name>Po-Chuan Hsieh</name>
<email>sunpoet@sunpoet.net</email>
</author>
<published>2019-03-30T19:11:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=060f870b85a6ee85668caeb791935fe98f4da56d'/>
<id>060f870b85a6ee85668caeb791935fe98f4da56d</id>
<content type='text'>
ALTSVC requires Curl_get_line which is defined in lib/cookie.c inside a #if
check of HTTP and COOKIES. That makes Curl_get_line undefined if COOKIES is
disabled. Fix by splitting out the function into a separate file which can
be included where needed.

Closes #3717
Reviewed-by: Daniel Gustafsson &lt;daniel@yesql.se&gt;
Reviewed-by: Marcel Raad &lt;Marcel.Raad@teamviewer.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ALTSVC requires Curl_get_line which is defined in lib/cookie.c inside a #if
check of HTTP and COOKIES. That makes Curl_get_line undefined if COOKIES is
disabled. Fix by splitting out the function into a separate file which can
be included where needed.

Closes #3717
Reviewed-by: Daniel Gustafsson &lt;daniel@yesql.se&gt;
Reviewed-by: Marcel Raad &lt;Marcel.Raad@teamviewer.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>alt-svc: the libcurl bits</title>
<updated>2019-03-03T10:17:52+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2019-03-03T10:17:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=e1be8254534898fccafc5d6cd04f6235f283cfbd'/>
<id>e1be8254534898fccafc5d6cd04f6235f283cfbd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>cookie: Add support for cookie prefixes</title>
<updated>2019-02-16T23:09:30+00:00</updated>
<author>
<name>Daniel Gustafsson</name>
<email>daniel@yesql.se</email>
</author>
<published>2019-02-16T23:09:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=e6522522f96ad96b459e608c6cdcd46a32099b5b'/>
<id>e6522522f96ad96b459e608c6cdcd46a32099b5b</id>
<content type='text'>
The draft-ietf-httpbis-rfc6265bis-02 draft, specify a set of prefixes
and how they should affect cookie initialization, which has been
adopted by the major browsers. This adds support for the two prefixes
defined, __Host- and __Secure, and updates the testcase with the
supplied examples from the draft.

Closes #3554
Reviewed-by: Daniel Stenberg &lt;daniel@haxx.se&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The draft-ietf-httpbis-rfc6265bis-02 draft, specify a set of prefixes
and how they should affect cookie initialization, which has been
adopted by the major browsers. This adds support for the two prefixes
defined, __Host- and __Secure, and updates the testcase with the
supplied examples from the draft.

Closes #3554
Reviewed-by: Daniel Stenberg &lt;daniel@haxx.se&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cookies: leave secure cookies alone</title>
<updated>2018-12-13T08:57:58+00:00</updated>
<author>
<name>Daniel Gustafsson</name>
<email>daniel@yesql.se</email>
</author>
<published>2018-12-13T08:57:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=7a09b52c98ac8d840a8a9907b1a1d9a9e684bcf5'/>
<id>7a09b52c98ac8d840a8a9907b1a1d9a9e684bcf5</id>
<content type='text'>
Only allow secure origins to be able to write cookies with the
'secure' flag set. This reduces the risk of non-secure origins
to influence the state of secure origins. This implements IETF
Internet-Draft draft-ietf-httpbis-cookie-alone-01 which updates
RFC6265.

Closes #2956
Reviewed-by: Daniel Stenberg &lt;daniel@haxx.se&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only allow secure origins to be able to write cookies with the
'secure' flag set. This reduces the risk of non-secure origins
to influence the state of secure origins. This implements IETF
Internet-Draft draft-ietf-httpbis-cookie-alone-01 which updates
RFC6265.

Closes #2956
Reviewed-by: Daniel Stenberg &lt;daniel@haxx.se&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cookies: support creation-time attribute for cookies</title>
<updated>2018-08-31T12:11:37+00:00</updated>
<author>
<name>Daniel Gustafsson</name>
<email>daniel@yesql.se</email>
</author>
<published>2018-08-28T09:28:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=e2ef8d6fa11b2345e10b89db525920f2a0d5fd79'/>
<id>e2ef8d6fa11b2345e10b89db525920f2a0d5fd79</id>
<content type='text'>
According to RFC6265 section 5.4, cookies with equal path lengths
SHOULD be sorted by creation-time (earlier first). This adds a
creation-time record to the cookie struct in order to make cookie
sorting more deterministic. The creation-time is defined as the
order of the cookies in the jar, the first cookie read fro the
jar being the oldest. The creation-time is thus not serialized
into the jar. Also remove the strcmp() matching in the sorting as
there is no lexicographic ordering in RFC6265. Existing tests are
updated to match.

Closes #2524
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
According to RFC6265 section 5.4, cookies with equal path lengths
SHOULD be sorted by creation-time (earlier first). This adds a
creation-time record to the cookie struct in order to make cookie
sorting more deterministic. The creation-time is defined as the
order of the cookies in the jar, the first cookie read fro the
jar being the oldest. The creation-time is thus not serialized
into the jar. Also remove the strcmp() matching in the sorting as
there is no lexicographic ordering in RFC6265. Existing tests are
updated to match.

Closes #2524
</pre>
</div>
</content>
</entry>
<entry>
<title>cookies: remove unused macro</title>
<updated>2018-04-27T06:54:15+00:00</updated>
<author>
<name>Daniel Gustafsson</name>
<email>daniel@yesql.se</email>
</author>
<published>2018-04-26T22:54:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=85437697da9257e92a50c5613b7608ca5fa8a751'/>
<id>85437697da9257e92a50c5613b7608ca5fa8a751</id>
<content type='text'>
Commit 2bc230de63 made the macro MAX_COOKIE_LINE_TXT become unused,
so remove as it's not part of the published API.

Closes https://github.com/curl/curl/pull/2537
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit 2bc230de63 made the macro MAX_COOKIE_LINE_TXT become unused,
so remove as it's not part of the published API.

Closes https://github.com/curl/curl/pull/2537
</pre>
</div>
</content>
</entry>
<entry>
<title>cookie: store cookies per top-level-domain-specific hash table</title>
<updated>2018-04-02T08:48:53+00:00</updated>
<author>
<name>Lauri Kasanen</name>
<email>cand@gmx.com</email>
</author>
<published>2018-03-30T14:35:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=c990eadd12779a22f73c834db8e1c30c6dcf0f9c'/>
<id>c990eadd12779a22f73c834db8e1c30c6dcf0f9c</id>
<content type='text'>
This makes libcurl handle thousands of cookies much better and speedier.

Closes #2440
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes libcurl handle thousands of cookies much better and speedier.

Closes #2440
</pre>
</div>
</content>
</entry>
<entry>
<title>cookies: when reading from a file, only remove_expired once</title>
<updated>2018-04-02T08:40:32+00:00</updated>
<author>
<name>Lauri Kasanen</name>
<email>cand@gmx.com</email>
</author>
<published>2018-03-30T15:33:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=4073cd83b2f3bcf93f1ce7f5d567d22175bad9af'/>
<id>4073cd83b2f3bcf93f1ce7f5d567d22175bad9af</id>
<content type='text'>
This drops the cookie load time for 8k cookies from 178ms to 15ms.

Closes #2441
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This drops the cookie load time for 8k cookies from 178ms to 15ms.

Closes #2441
</pre>
</div>
</content>
</entry>
<entry>
<title>cookies: reject oversized cookies</title>
<updated>2017-09-18T20:55:50+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2017-09-17T22:55:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=2bc230de63bd7da197280a69d84972b61455cd18'/>
<id>2bc230de63bd7da197280a69d84972b61455cd18</id>
<content type='text'>
... instead of truncating them.

There's no fixed limit for acceptable cookie names in RFC 6265, but the
entire cookie is said to be less than 4096 bytes (section 6.1). This is
also what browsers seem to implement.

We now allow max 5000 bytes cookie header. Max 4095 bytes length per
cookie name and value. Name + value together may not exceed 4096 bytes.

Added test 1151 to verify

Bug: https://curl.haxx.se/mail/lib-2017-09/0062.html
Reported-by: Kevin Smith

Closes #1894
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... instead of truncating them.

There's no fixed limit for acceptable cookie names in RFC 6265, but the
entire cookie is said to be less than 4096 bytes (section 6.1). This is
also what browsers seem to implement.

We now allow max 5000 bytes cookie header. Max 4095 bytes length per
cookie name and value. Name + value together may not exceed 4096 bytes.

Added test 1151 to verify

Bug: https://curl.haxx.se/mail/lib-2017-09/0062.html
Reported-by: Kevin Smith

Closes #1894
</pre>
</div>
</content>
</entry>
</feed>
