Lines Matching defs:size
289 size_t size = 6 + 20 + 10 + 1;
351 size += c->l[CE_NAME] + c->l[CE_VALUE] + c->l[CE_DOMAIN] + c->l[CE_PATH];
352 cookie_string = (char *)lws_malloc(size, __func__);
359 lws_snprintf(cookie_string, size, LWS_COOKIE_NSC_FORMAT,
382 if (lws_cache_item_get(l1, cache_name, (const void **)&po, &size) ||
383 size != strlen(cookie_string) || memcmp(po, cookie_string, size)) {
388 (const void **)&po, &size) ||
389 size != strlen(cookie_string) ||
390 memcmp(po, cookie_string, size)) {
391 lwsl_err("%s: NSC '%s' missing, size %llu, po %s\n", __func__,
392 cache_name, (unsigned long long)size, po);
407 size_t domain_len, path_len, size, ret = 0;
453 /* when dest buf is not provided, we only return size of cookie string */
488 (const void **)&cr.ptr, &cr.size)) {
495 (const void **)&po, &size) ||
496 lws_cookie_parse_nsc(&c, po, size)) {
688 int size;
693 size = lws_cookie_attach_cookies(wsi, NULL, NULL);
695 if (!size)
697 if (size < 0) {
698 lwsl_err("%s:failed to get cookie string size\n", __func__);
702 lwsl_notice("%s: size %d\n", __func__, size);
708 if (lws_add_http_header_by_token(wsi, WSI_TOKEN_HTTP_COOKIE, NULL, size,
719 p = *pp - size;
722 p = *pp - size - 2;
724 if (lws_cookie_attach_cookies(wsi, p, p + size) <= 0) {