|
Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include <string.h>#include <ctype.h>#include "gwlib/gwlib.h"#include "wsp.h"#include "cookies.h"Go to the source code of this file.
Functions | |
| static Octstr * | get_header_value (Octstr *) |
| static Cookie * | parse_cookie (Octstr *) |
| static void | add_cookie_to_cache (const WSPMachine *, Cookie *) |
| static void | expire_cookies (List *) |
| static void | cookie_destroy (void *) |
| static int | have_cookie (List *, Cookie *) |
| static int | parse_http_date (const char *) |
| Cookie * | cookie_create (void) |
| void | cookies_destroy (List *cookies) |
| int | get_cookies (List *headers, const WSPMachine *sm) |
| int | set_cookies (List *headers, WSPMachine *sm) |
| static int | month_index (const char *s) |
Variables | |
| static Cookie | emptyCookie |
| static const char * | months [] |
|
static |
Definition at line 344 of file cookies.c.
References gw_assert(), and gwlist_append().
Referenced by get_cookies().
| Cookie* cookie_create | ( | void | ) |
Definition at line 88 of file cookies.c.
References emptyCookie.
Referenced by parse_cookie().
|
static |
Definition at line 455 of file cookies.c.
References debug(), _cookie::domain, _cookie::name, octstr_destroy(), _cookie::path, _cookie::value, and _cookie::version.
Referenced by cookies_destroy(), expire_cookies(), get_cookies(), have_cookie(), and parse_cookie().
| void cookies_destroy | ( | List * | cookies | ) |
Definition at line 100 of file cookies.c.
References cookie_destroy(), gwlib_assert_init(), and gwlist_destroy().
|
static |
Definition at line 419 of file cookies.c.
References _cookie::birth, cookie_destroy(), debug(), error(), gw_assert(), gwlist_delete(), gwlist_get(), gwlist_len(), _cookie::max_age, _cookie::name, and octstr_get_cstr.
Referenced by set_cookies().
| int get_cookies | ( | List * | headers, |
| const WSPMachine * | sm | ||
| ) |
Definition at line 111 of file cookies.c.
References add_cookie_to_cache(), cookie_destroy(), debug(), error(), get_header_value(), gwlist_get(), gwlist_len(), have_cookie(), info(), name, octstr_get_cstr, and parse_cookie().
Referenced by return_reply().
Definition at line 218 of file cookies.c.
References colon, debug(), error(), octstr_copy, octstr_get_cstr, octstr_len(), octstr_search_char(), and octstr_strip_blanks().
Referenced by get_cookies().
Definition at line 361 of file cookies.c.
References cookie_destroy(), debug(), _cookie::domain, error(), gwlist_delete(), gwlist_get(), gwlist_len(), _cookie::max_age, _cookie::name, octstr_compare(), octstr_get_cstr, and _cookie::path.
Referenced by get_cookies().
|
static |
Definition at line 248 of file cookies.c.
References cookie_create(), cookie_destroy(), error(), _cookie::max_age, _cookie::name, octstr_append_cstr(), octstr_create, octstr_get_cstr, parse_http_date(), and _cookie::value.
Referenced by get_cookies().
|
static |
Definition at line 522 of file cookies.c.
References date(), debug(), error(), gw_mktime(), MAX_HTTP_DATE_LENGTH, and month_index().
Referenced by parse_cookie().
| int set_cookies | ( | List * | headers, |
| WSPMachine * | sm | ||
| ) |
Definition at line 162 of file cookies.c.
References debug(), _cookie::domain, error(), expire_cookies(), gwlist_append(), gwlist_get(), gwlist_len(), _cookie::name, octstr_append(), octstr_append_char(), octstr_create, octstr_get_cstr, _cookie::path, _cookie::value, and _cookie::version.
Referenced by start_fetch().
|
static |
Definition at line 85 of file cookies.c.
Referenced by cookie_create().
|
static |
Definition at line 503 of file cookies.c.
Referenced by month_index().