Macros | Functions
cookie.c File Reference
#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"
Include dependency graph for cookie.c:

Go to the source code of this file.

Macros

#define CLONE(field)
 

Functions

static struct curl_slistcookie_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 CookieCurl_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 CookieCurl_cookie_getlist (struct CookieInfo *c, const char *host, const char *path, bool secure)
 
struct CookieInfoCurl_cookie_init (struct Curl_easy *data, const char *file, struct CookieInfo *inc, bool newsession)
 
struct curl_slistCurl_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 Cookiedup_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)
 

Macro Definition Documentation

#define CLONE (   field)
Value:
do { \
if(src->field) { \
d->field = strdup(src->field); \
if(!d->field) \
goto fail; \
} \
} while(0)
d
#define strdup(ptr)
Definition: curl_memory.h:122
if(strcmp(arg,"1305")!=0)
Definition: unit1305.c:127
#define fail(msg)
Definition: curlcheck.h:51

Definition at line 1084 of file cookie.c.

Function Documentation

static struct curl_slist* cookie_list ( struct Curl_easy data)
static

Definition at line 1406 of file cookie.c.

static int cookie_output ( struct CookieInfo c,
const char *  dumphere 
)
static

Definition at line 1355 of file cookie.c.

static int cookie_sort ( const void *  p1,
const void *  p2 
)
static

Definition at line 1056 of file cookie.c.

struct Cookie* Curl_cookie_add ( struct Curl_easy data,
struct CookieInfo c,
bool  httpheader,
char *  lineptr,
const char *  domain,
const char *  path 
)

Definition at line 364 of file cookie.c.

void Curl_cookie_cleanup ( struct CookieInfo c)

Definition at line 1308 of file cookie.c.

void Curl_cookie_clearall ( struct CookieInfo cookies)

Definition at line 1235 of file cookie.c.

void Curl_cookie_clearsess ( struct CookieInfo cookies)

Definition at line 1270 of file cookie.c.

void Curl_cookie_freelist ( struct Cookie co)

Definition at line 1252 of file cookie.c.

struct Cookie* Curl_cookie_getlist ( struct CookieInfo c,
const char *  host,
const char *  path,
bool  secure 
)

Definition at line 1130 of file cookie.c.

struct CookieInfo* Curl_cookie_init ( struct Curl_easy data,
const char *  file,
struct CookieInfo inc,
bool  newsession 
)

Definition at line 974 of file cookie.c.

struct curl_slist* Curl_cookie_list ( struct Curl_easy data)

Definition at line 1437 of file cookie.c.

void Curl_cookie_loadfiles ( struct Curl_easy data)

Definition at line 262 of file cookie.c.

void Curl_flush_cookies ( struct Curl_easy data,
int  cleanup 
)

Definition at line 1446 of file cookie.c.

static struct Cookie* dup_cookie ( struct Cookie src)
static

Definition at line 1093 of file cookie.c.

static void freecookie ( struct Cookie co)
static

Definition at line 107 of file cookie.c.

static char* get_line ( char *  buf,
int  len,
FILE *  input 
)
static

Definition at line 939 of file cookie.c.

static char* get_netscape_format ( const struct Cookie co)
static

Definition at line 1323 of file cookie.c.

static bool isip ( const char *  domain)
static

Definition at line 331 of file cookie.c.

static bool pathmatch ( const char *  cookie_path,
const char *  request_uri 
)
static

Definition at line 149 of file cookie.c.

static void remove_expired ( struct CookieInfo cookies)
static

Definition at line 302 of file cookie.c.

static char* sanitize_cookie_path ( const char *  cookie_path)
static

Definition at line 223 of file cookie.c.

static void strstore ( char **  str,
const char *  newstr 
)
static

Definition at line 293 of file cookie.c.

static bool tailmatch ( const char *  cooke_domain,
const char *  hostname 
)
static

Definition at line 120 of file cookie.c.



rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:17