/* describes a chunk of string */
struct chunk {
char *str; /* beginning of the string itself. Might not be 0-terminated */
- size_t size; /* total size of the buffer, 0 if the *str is read-only */
+ int size; /* total size of the buffer, 0 if the *str is read-only */
int len; /* current size of the string from first to last char. <0 = uninit. */
};
static char *
extract_cookie_value(char *hdr, const char *hdr_end,
char *cookie_name, size_t cookie_name_l, int list,
- char **value, size_t *value_l)
+ char **value, int *value_l)
{
char *equal, *att_end, *att_beg, *val_beg, *val_end;
char *next;
find_cookie_value(struct http_msg *msg, struct http_txn *txn,
const char *hdr_name, int hdr_name_len,
char *cookie_name, size_t cookie_name_l, int list,
- char **value, size_t *value_l)
+ char **value, int *value_l)
{
struct hdr_ctx ctx;
int found = 0;
struct http_txn *txn = l7;
struct http_msg *msg = &txn->req;
char *cookie_value;
- size_t cookie_value_l;
+ int cookie_value_l;
int found = 0;
found = find_cookie_value(msg, txn, "Cookie", 6,
struct http_txn *txn = l7;
struct http_msg *msg = &txn->rsp;
char *cookie_value;
- size_t cookie_value_l;
+ int cookie_value_l;
int found = 0;
found = find_cookie_value(msg, txn, "Set-Cookie", 10,