Defines | 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.

Defines

#define CLONE(field)

Functions

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)

Define Documentation

#define CLONE (   field)
Value:
do {                                   \
    if(src->field) {                     \
      dup->field = strdup(src->field);   \
      if(!dup->field)                    \
        goto fail;                       \
    }                                    \
  } while(0)

Definition at line 1055 of file cookie.c.


Function Documentation

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

Definition at line 1326 of file cookie.c.

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

Definition at line 1027 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 
) [read]

Definition at line 364 of file cookie.c.

void Curl_cookie_cleanup ( struct CookieInfo c)

Definition at line 1279 of file cookie.c.

void Curl_cookie_clearall ( struct CookieInfo cookies)

Definition at line 1206 of file cookie.c.

void Curl_cookie_clearsess ( struct CookieInfo cookies)

Definition at line 1241 of file cookie.c.

void Curl_cookie_freelist ( struct Cookie co)

Definition at line 1223 of file cookie.c.

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

Definition at line 1101 of file cookie.c.

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

Definition at line 945 of file cookie.c.

struct curl_slist* Curl_cookie_list ( struct Curl_easy data) [read]

Definition at line 1377 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 1408 of file cookie.c.

static struct Cookie* dup_cookie ( struct Cookie src) [static, read]

Definition at line 1064 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 909 of file cookie.c.

static char* get_netscape_format ( const struct Cookie co) [static]

Definition at line 1294 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_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:08