| /lighttpd1.4/src/ |
| H A D | http_header.c | 20 const uint16_t vlen; member 110 } while (slen == (++kv)->vlen); in http_header_hkey_get() 130 } while (slen == (++kv)->vlen); in http_header_hkey_get_lc() 199 buffer_append_string_len(vb, v, vlen); in http_header_token_append() 208 buffer_append_string_len(vb, v, vlen); in http_header_token_append_cookie() 253 (vlen) in http_header_response_set() 260 if (0 == vlen) return; in http_header_response_append() 263 http_header_token_append(vb, v, vlen); in http_header_response_append() 281 if (0 == vlen) return; in http_header_response_insert() 320 (vlen) in http_header_request_set() [all …]
|
| H A D | request.c | 355 for (i = 0; i < vlen; ++i) { in li_restricted_strtoint64() 374 if (vb && buffer_eq_icase_slen(vb, v, vlen)) in http_request_parse_duplicate() 425 if (vlen >= 1024) { /*(expecting < 256)*/ in http_request_parse_single_header() 465 if (err == v+vlen) { in http_request_parse_single_header() 640 uint32_t vlen = hpctx->vlen; in http_request_parse_header() local 665 if (0 == vlen) in http_request_parse_header() 773 if (0 == vlen) in http_request_parse_header() 789 if (0 == vlen) in http_request_parse_header() 793 while (v[vlen-1] == ' ' || v[vlen-1] == '\t') --vlen; in http_request_parse_header() 851 if (0 == vlen) in http_request_parse_header() [all …]
|
| H A D | mod_extforward.c | 791 while (vlen > v && (s[vlen-1] == ' ' || s[vlen-1] == '\t')) --vlen; in mod_extforward_Forwarded() 792 if (vlen > v+1 && s[v] == '"' && s[vlen-1] == '"') { in mod_extforward_Forwarded() 794 --vlen; in mod_extforward_Forwarded() 799 do { --vlen; } while (vlen > v && s[vlen] != ']'); in mod_extforward_Forwarded() 807 for (klen=vlen, vlen=v; vlen < klen && s[vlen] != ':'; ++vlen) ; in mod_extforward_Forwarded() 895 while (vlen > v && (s[vlen-1] == ' ' || s[vlen-1] == '\t')) --vlen; in mod_extforward_Forwarded() 896 if (vlen > v+1 && s[v] == '"' && s[vlen-1] == '"') { ++v; --vlen; } in mod_extforward_Forwarded() 940 while (vlen > v && (s[vlen-1] == ' ' || s[vlen-1] == '\t')) --vlen; in mod_extforward_Forwarded() 941 if (vlen > v+1 && s[v] == '"' && s[vlen-1] == '"') { in mod_extforward_Forwarded() 980 while (vlen > v && (s[vlen-1] == ' ' || s[vlen-1] == '\t')) --vlen; in mod_extforward_Forwarded() [all …]
|
| H A D | http_header.h | 120 …(request_st *r, enum http_header_e id, const char *k, uint32_t klen, const char *v, uint32_t vlen); 121 …(request_st *r, enum http_header_e id, const char *k, uint32_t klen, const char *v, uint32_t vlen); 122 …(request_st *r, enum http_header_e id, const char *k, uint32_t klen, const char *v, uint32_t vlen); 129 …(request_st *r, enum http_header_e id, const char *k, uint32_t klen, const char *v, uint32_t vlen); 130 …(request_st *r, enum http_header_e id, const char *k, uint32_t klen, const char *v, uint32_t vlen); 136 void http_header_env_set(request_st *r, const char *k, uint32_t klen, const char *v, uint32_t vlen); 137 … http_header_env_append(request_st *r, const char *k, uint32_t klen, const char *v, uint32_t vlen);
|
| H A D | http_kv.c | 17 unsigned int vlen; member 165 while (kv->vlen && (kv->vlen != slen || 0 != memcmp(kv->value, s, slen))) 211 if (__builtin_expect( (0 != kv->vlen), 1)) in http_status_append() 212 buffer_append_string_len(b, kv->value, kv->vlen); in http_status_append() 221 if (__builtin_expect( (0 != kv->vlen), 1)) in http_version_append() 222 buffer_append_string_len(b, kv->value, kv->vlen); in http_version_append()
|
| H A D | mod_alias.c | 141 const uint32_t vlen = buffer_clen(&ds->value); in mod_alias_remap() local 150 && 0 != vlen && ds->value.ptr[vlen-1] == '/') { in mod_alias_remap() 160 if (vlen != basedir_len + alias_len) { in mod_alias_remap() 161 const uint32_t nlen = vlen + uri_len - alias_len; in mod_alias_remap() 166 memmove(r->physical.path.ptr + vlen, in mod_alias_remap() 170 memcpy(r->physical.path.ptr, ds->value.ptr, vlen); in mod_alias_remap() 172 buffer_copy_string_len(&r->physical.basedir, ds->value.ptr, vlen); in mod_alias_remap()
|
| H A D | mod_maxminddb.c | 356 size_t vlen; in geoip2_env_set() local 360 vlen = data->data_size; in geoip2_env_set() 364 vlen = 1; in geoip2_env_set() 368 vlen = data->data_size; in geoip2_env_set() 377 vlen = li_itostrn(buf, sizeof(buf), data->int32); in geoip2_env_set() 380 vlen = li_utostrn(buf, sizeof(buf), data->uint32); in geoip2_env_set() 383 vlen = li_utostrn(buf, sizeof(buf), data->uint16); in geoip2_env_set() 387 vlen = li_utostrn(buf, sizeof(buf), data->uint64); in geoip2_env_set() 397 vlen = 34; in geoip2_env_set() 403 http_header_env_set(r, BUF_PTR_LEN(kb), v, vlen); in geoip2_env_set() [all …]
|
| H A D | array.c | 419 void array_insert_value(array * const a, const char * const v, const uint32_t vlen) { in array_insert_value() argument 422 buffer_copy_string_len(&ds->value, v, vlen); in array_insert_value() 559 const uint32_t vlen = buffer_clen(value); in array_match_value_prefix() local 560 if (vlen <= blen && 0 == memcmp(b->ptr, value->ptr, vlen)) in array_match_value_prefix() 573 const uint32_t vlen = buffer_clen(value); in array_match_value_prefix_nc() local 574 if (vlen <= blen && buffer_eq_icase_ssn(b->ptr, value->ptr, vlen)) in array_match_value_prefix_nc() 618 const uint32_t vlen = buffer_clen(value); in array_match_value_suffix() local 619 if (vlen <= blen && 0 == memcmp(end - vlen, value->ptr, vlen)) in array_match_value_suffix() 633 const uint32_t vlen = buffer_clen(value); in array_match_value_suffix_nc() local 634 if (vlen <= blen && buffer_eq_icase_ssn(end - vlen, value->ptr, vlen)) in array_match_value_suffix_nc()
|
| H A D | array.h | 118 void array_insert_value(array *a, const char *v, uint32_t vlen); 120 …y * const a, const char * const k, const uint32_t klen, const char * const v, const uint32_t vlen); 122 … * const a, const char * const k, const uint32_t klen, const char * const v, const uint32_t vlen) { in array_set_key_value() argument 123 buffer_copy_string_len(array_get_buf_ptr(a, k, klen), v, vlen); in array_set_key_value()
|
| H A D | ck.c | 191 const size_t vlen = strlen(v); 193 *len = vlen; 194 if (vlen < maxsize) { 195 memcpy(value, v, vlen+1);
|
| H A D | h2.c | 1425 hpctx.vlen = lsx.val_len; in h2_parse_headers_frame() 2198 alen += klen + vlen + 4; in h2_send_headers() 2224 alen -= klen + vlen + 4; in h2_send_headers() 2242 lsx.name_offset = vlen+1; in h2_send_headers() 2246 lsx.val_len = vlen - voff; in h2_send_headers() 2303 alen += 6+vlen+4; in h2_send_headers() 2307 lsx.name_offset = vlen+1; in h2_send_headers() 2310 lsx.val_len = vlen; in h2_send_headers() 2413 uint32_t vlen = end - v; in h2_send_headers_block() local 2414 if (0 == vlen) continue; in h2_send_headers_block() [all …]
|
| H A D | request.h | 210 uint32_t vlen; member 229 int64_t li_restricted_strtoint64 (const char *v, const uint32_t vlen, const char ** const err);
|
| H A D | http_cgi.h | 21 … (*http_cgi_header_append_cb)(void *vdata, const char *k, size_t klen, const char *v, size_t vlen);
|
| H A D | response.c | 141 const uint32_t vlen = buffer_clen(&ds->value); in http_response_write_header() local 143 if (__builtin_expect( (0 == vlen), 0)) continue; in http_response_write_header() 146 char * restrict s = buffer_extend(b, klen+vlen+4); in http_response_write_header() 153 memcpy(s+2, ds->value.ptr, vlen); in http_response_write_header()
|
| H A D | mod_ajp13.c | 418 …, uint32_t n, const char * const k, const uint32_t klen, const char * const v, const uint32_t vlen) 424 return ajp13_enc_string(x, n, v, vlen); 533 ajp13_env_add (void *venv, const char *k, size_t klen, const char *v, size_t vlen) 536 array_set_key_value((array *)venv, k, klen, v, vlen);
|
| H A D | mod_proxy.c | 950 const uint32_t vlen = buffer_clen(&ds->value); in proxy_create_env() local 951 if (0 == klen || 0 == vlen) continue; in proxy_create_env() 952 char * restrict s = buffer_extend(b, klen+vlen+4); in proxy_create_env() 959 memcpy(s+2, ds->value.ptr, vlen); in proxy_create_env() 986 http_header_remap_uri(b, buffer_clen(b) - vlen, &hctx->conf.header, 1); in proxy_create_env()
|
| H A D | http-header-glue.c | 982 uint32_t vlen = (uint32_t)(err - value); in http_response_process_headers() local 984 (off_t)li_restricted_strtoint64(value, vlen, &err); in http_response_process_headers() 985 if (err != value + vlen) { in http_response_process_headers()
|
| H A D | mod_status.c | 697 static void mod_status_row_append(buffer *b, const char *k, size_t klen, const char *v, size_t vlen) in mod_status_row_append() argument 705 ,{ v, vlen } in mod_status_row_append()
|
| H A D | connections.c | 396 const uint32_t vlen = buffer_clen(&ds->value); in connection_send_1xx() local 397 if (0 == klen || 0 == vlen) continue; in connection_send_1xx() 399 buffer_append_str2(b, CONST_STR_LEN(": "), ds->value.ptr, vlen); in connection_send_1xx()
|
| H A D | mod_gnutls.c | 2777 unsigned int n, vlen = ava.value.size; in https_add_ssl_client_subject() local 2778 if (vlen > sizeof(buf)-1) in https_add_ssl_client_subject() 2779 vlen = sizeof(buf)-1; in https_add_ssl_client_subject() 2780 for (n = 0; n < vlen; ++n) { in https_add_ssl_client_subject()
|
| H A D | mod_ssi.c | 541 static int ssi_env_add(void *venv, const char *key, size_t klen, const char *val, size_t vlen) { in ssi_env_add() argument 542 array_set_key_value((array *)venv, key, klen, val, vlen); in ssi_env_add()
|
| H A D | configfile.c | 341 …onst srv, const char * const opt, const uint32_t olen, const char * const v, const uint32_t vlen) { in config_has_opt_and_value() argument 348 && buffer_eq_slen(&ds->value, v, vlen)) in config_has_opt_and_value()
|
| H A D | mod_webdav.c | 822 const char * const value, const uint32_t vlen) in webdav_xml_prop() argument 824 if (0 == vlen) { in webdav_xml_prop() 841 ,{ value, vlen } in webdav_xml_prop()
|
| /lighttpd1.4/src/t/ |
| H A D | test_http_header.c | 87 http_headers[u].vlen)); in test_http_header_tables() 89 http_headers[u].vlen)); in test_http_header_tables() 100 if (http_headers[u].vlen == 0) break; in test_http_header_tables() 101 int8_t x = http_headers_off[http_headers[u].vlen]; in test_http_header_tables() 103 assert(http_headers[x].vlen == http_headers[u].vlen); in test_http_header_tables()
|
| /lighttpd1.4/tests/ |
| H A D | fcgi-responder.c | 118 int vlen = r[i]; in fcgi_getenv() local 122 vlen = ((r[i] & ~0x80)<<24) | (r[i+1]<<16) | (r[i+2]<<8) | r[i+3]; in fcgi_getenv() 127 *len = vlen; in fcgi_getenv() 131 i += klen + vlen; in fcgi_getenv()
|