#include "curl_setup.h"
#include "urldata.h"
#include "cookie.h"
#include "strtok.h"
#include "sendf.h"
#include "slist.h"
#include "share.h"
#include "strtoofft.h"
#include "strcase.h"
#include "curl_memrchr.h"
#include "inet_pton.h"
#include "curl_printf.h"
#include "curl_memory.h"
#include "memdebug.h"
Go to the source code of this file.
|
| static struct curl_slist * | cookie_list (struct Curl_easy *data) |
| |
| static int | cookie_output (struct CookieInfo *c, const char *dumphere) |
| |
| static int | cookie_sort (const void *p1, const void *p2) |
| |
| struct Cookie * | Curl_cookie_add (struct Curl_easy *data, struct CookieInfo *c, bool httpheader, char *lineptr, const char *domain, const char *path) |
| |
| void | Curl_cookie_cleanup (struct CookieInfo *c) |
| |
| void | Curl_cookie_clearall (struct CookieInfo *cookies) |
| |
| void | Curl_cookie_clearsess (struct CookieInfo *cookies) |
| |
| void | Curl_cookie_freelist (struct Cookie *co) |
| |
| struct Cookie * | Curl_cookie_getlist (struct CookieInfo *c, const char *host, const char *path, bool secure) |
| |
| struct CookieInfo * | Curl_cookie_init (struct Curl_easy *data, const char *file, struct CookieInfo *inc, bool newsession) |
| |
| struct curl_slist * | Curl_cookie_list (struct Curl_easy *data) |
| |
| void | Curl_cookie_loadfiles (struct Curl_easy *data) |
| |
| void | Curl_flush_cookies (struct Curl_easy *data, int cleanup) |
| |
| static struct Cookie * | dup_cookie (struct Cookie *src) |
| |
| static void | freecookie (struct Cookie *co) |
| |
| static char * | get_line (char *buf, int len, FILE *input) |
| |
| static char * | get_netscape_format (const struct Cookie *co) |
| |
| static bool | isip (const char *domain) |
| |
| static bool | pathmatch (const char *cookie_path, const char *request_uri) |
| |
| static void | remove_expired (struct CookieInfo *cookies) |
| |
| static char * | sanitize_cookie_path (const char *cookie_path) |
| |
| static void | strstore (char **str, const char *newstr) |
| |
| static bool | tailmatch (const char *cooke_domain, const char *hostname) |
| |
◆ CLONE
Value: do { \
if(src->field) { \
d->field =
strdup(src->field); \
} \
} while(0)
Definition at line 1084 of file cookie.c.
◆ cookie_list()
◆ cookie_output()
| static int cookie_output |
( |
struct CookieInfo * |
c, |
|
|
const char * |
dumphere |
|
) |
| |
|
static |
◆ cookie_sort()
| static int cookie_sort |
( |
const void * |
p1, |
|
|
const void * |
p2 |
|
) |
| |
|
static |
◆ Curl_cookie_add()
| struct Cookie* Curl_cookie_add |
( |
struct Curl_easy * |
data, |
|
|
struct CookieInfo * |
c, |
|
|
bool |
httpheader, |
|
|
char * |
lineptr, |
|
|
const char * |
domain, |
|
|
const char * |
path |
|
) |
| |
◆ Curl_cookie_cleanup()
◆ Curl_cookie_clearall()
| void Curl_cookie_clearall |
( |
struct CookieInfo * |
cookies | ) |
|
◆ Curl_cookie_clearsess()
| void Curl_cookie_clearsess |
( |
struct CookieInfo * |
cookies | ) |
|
◆ Curl_cookie_freelist()
| void Curl_cookie_freelist |
( |
struct Cookie * |
co | ) |
|
◆ Curl_cookie_getlist()
| struct Cookie* Curl_cookie_getlist |
( |
struct CookieInfo * |
c, |
|
|
const char * |
host, |
|
|
const char * |
path, |
|
|
bool |
secure |
|
) |
| |
◆ Curl_cookie_init()
◆ Curl_cookie_list()
◆ Curl_cookie_loadfiles()
| void Curl_cookie_loadfiles |
( |
struct Curl_easy * |
data | ) |
|
◆ Curl_flush_cookies()
| void Curl_flush_cookies |
( |
struct Curl_easy * |
data, |
|
|
int |
cleanup |
|
) |
| |
◆ dup_cookie()
◆ freecookie()
| static void freecookie |
( |
struct Cookie * |
co | ) |
|
|
static |
◆ get_line()
| static char* get_line |
( |
char * |
buf, |
|
|
int |
len, |
|
|
FILE * |
input |
|
) |
| |
|
static |
◆ get_netscape_format()
| static char* get_netscape_format |
( |
const struct Cookie * |
co | ) |
|
|
static |
◆ isip()
| static bool isip |
( |
const char * |
domain | ) |
|
|
static |
◆ pathmatch()
| static bool pathmatch |
( |
const char * |
cookie_path, |
|
|
const char * |
request_uri |
|
) |
| |
|
static |
◆ remove_expired()
| static void remove_expired |
( |
struct CookieInfo * |
cookies | ) |
|
|
static |
◆ sanitize_cookie_path()
| static char* sanitize_cookie_path |
( |
const char * |
cookie_path | ) |
|
|
static |
◆ strstore()
| static void strstore |
( |
char ** |
str, |
|
|
const char * |
newstr |
|
) |
| |
|
static |
◆ tailmatch()
| static bool tailmatch |
( |
const char * |
cooke_domain, |
|
|
const char * |
hostname |
|
) |
| |
|
static |