29 "sid= secret ; Path= /a ; Domain= .example.com",
31 "path=secret; Domain=example.com; Path=/",
32 "sid=secret; =domain=example.com",
33 "sid=secret; Path=abc",
34 "sid=secret; Path=/a; Path=\"/\"",
35 "sid=secret; Secure; HttpOnly",
36 "sid=secret; Max-Age=0; Expires=Wed, 09 Jun 2100 10:18:14 GMT",
37 "sid=secret; Max-Age=-1",
38 "sid=secret; Max-Age=0; Max-Age=bad",
39 "sid=secret; Expires=Sunday, 06-Nov-1994 08:49:37 GMT; Expires=bad",
40 "sid=secret; Domain=example.com; Domain=",
41 "sid=secret; Max-Age=-; Expires=Wed, 09 Jun 2100 10:18:14 GMT",
42 "sid=secret; Max-Age=1x; Expires=Sunday, 06-Nov-1994 08:49:37 GMT",
52static const char *
const dates[] = {
53 "Wed, 21 Oct 2015 07:28:00 GMT",
54 "Wednesday, 21-Oct-15 07:28:00 GMT",
55 "Wed Oct 21 07:28:00 2015",
56 "Thu, 01 Jan 1970 00:00:00 GMT",
57 "Thu, 29 Feb 2024 12:00:00 GMT",
58 "Thu, 29 Feb 2023 12:00:00 GMT",
59 "Wed, 21 Oct 1600 07:28:00 GMT",
60 "Wed, 21 Oct 2015 24:00:00 GMT",
66 char *
bound =
av_strdup(
"sid=secret\ndomain=localhost\nsid=secret; Domain=example.com\n"
67 "sid=secret; @hostonly=other\r\n");
84 printf(
" domain=%s expiry=%"PRId64
"\n", domain ? domain :
"-",
static double bound(const double threshold, const double val)
#define i(width, name, range_min, range_max)
__device__ int printf(const char *,...)
void av_dict_free(AVDictionary **pm)
Free all the memory allocated for an AVDictionary struct and all keys and values.
const AVDictionaryEntry * av_dict_iterate(const AVDictionary *m, const AVDictionaryEntry *prev)
Iterate over a dictionary.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
const char * ff_http_cookie_domain(const AVDictionary *cookie_params)
int64_t ff_http_cookie_expiry(const AVDictionary *attributes)
int ff_http_parse_set_cookie(const char *set_cookie, AVDictionary **cookie, AVDictionary **attributes)
Parse a Set-Cookie style line.
int ff_http_parse_date(const char *date_str, struct tm *buf)
Parse an HTTP date like "Wed, 21 Oct 2015 07:28:00 GMT".
int ff_http_bind_cookies_to_host(char **cookies, const char *host)
Restrict the cookies without a Domain to host.
Utility Preprocessor macros.
Memory handling functions.
time_t av_timegm(struct tm *tm)
Convert the decomposed UTC time in tm to a time_t value, saturated to the range of time_t.
#define FF_ARRAY_ELEMS(a)
static const char *const cookies[]
static const char *const dates[]