| /lighttpd1.4/src/ls-hpack/ |
| H A D | lshpack.c | 73 const char *val; member 1286 uintptr_t val; in lshpack_dec_cleanup() local 1312 uint32_t val, B; in lshpack_dec_dec_int() local 1317 val = *src++; in lshpack_dec_dec_int() 1318 val &= prefix_max; in lshpack_dec_dec_int() 1320 if (val < prefix_max) in lshpack_dec_dec_int() 1323 *value_p = val; in lshpack_dec_dec_int() 1333 val = val + ((B & 0x7f) << M); in lshpack_dec_dec_int() 1343 if (M <= 28 || (M == 35 && src[-1] <= 0xF && val - (src[-1] << 28) < val)) in lshpack_dec_dec_int() 1346 *value_p = val; in lshpack_dec_dec_int() [all …]
|
| H A D | lsxpack_header.h | 69 const char *val, size_t val_len) in lsxpack_header_set_idx() argument 72 hdr->buf = (char *)val; in lsxpack_header_set_idx() 82 const char *val, size_t val_len) in lsxpack_header_set_qpack_idx() argument 85 hdr->buf = (char *)val; in lsxpack_header_set_qpack_idx()
|
| /lighttpd1.4/src/ |
| H A D | buffer.c | 301 *(--cur) = (char) ('0' + (int)(val - (x = val/10) * 10)); in __attribute_nonnull__() 302 } while (0 != (val = x)); /* val % 10 */ in __attribute_nonnull__() 308 static char* itostr(char buf[LI_ITOSTRING_LENGTH], intmax_t val) { in __attribute_nonnull__() 313 uintmax_t uval = val >= 0 ? (uintmax_t)val : ((uintmax_t)~val) + 1; in __attribute_nonnull__() 315 if (val < 0) *(--cur) = '-'; in __attribute_nonnull__() 320 void buffer_append_int(buffer *b, intmax_t val) { in buffer_append_int() argument 322 const char * const str = itostr(buf, val); in buffer_append_int() 348 size_t li_itostrn(char *buf, size_t buf_len, intmax_t val) { in li_itostrn() argument 350 char* const str = itostr(p_buf, val); in li_itostrn() 357 size_t li_utostrn(char *buf, size_t buf_len, uintmax_t val) { in li_utostrn() argument [all …]
|
| H A D | mod_scgi.c | 144 static int scgi_env_add_scgi(void *venv, const char *key, size_t key_len, const char *val, size_t v… in scgi_env_add_scgi() argument 148 if (!key || (!val && val_len)) return -1; in scgi_env_add_scgi() 156 memcpy(dst, val, val_len); in scgi_env_add_scgi() 163 static int scgi_env_add_uwsgi(void *venv, const char *key, size_t key_len, const char *val, size_t … in scgi_env_add_uwsgi() argument 164 if (!key || (!val && val_len)) return -1; in scgi_env_add_uwsgi() 174 memcpy(dst + 2, val, val_len); in scgi_env_add_uwsgi()
|
| H A D | mod_proxy.c | 178 int val = config_plugin_value_tobool(du, 2); in mod_proxy_parse_forwarded() local 179 if (2 == val) { in mod_proxy_parse_forwarded() 185 if (val) in mod_proxy_parse_forwarded() 200 if (2 == val) { in mod_proxy_parse_header_opts() 206 header.https_remap = val; in mod_proxy_parse_header_opts() 211 if (2 == val) { in mod_proxy_parse_header_opts() 217 header.force_http10 = val; in mod_proxy_parse_header_opts() 222 if (2 == val) { in mod_proxy_parse_header_opts() 228 header.upgrade = val; in mod_proxy_parse_header_opts() 233 if (2 == val) { in mod_proxy_parse_header_opts() [all …]
|
| H A D | mod_magnet.c | 1896 buffer_copy_string_len(&r->target, val->ptr, val->len); in magnet_env_set_uri_path_raw() 2037 if (val->len && *val->ptr == '/' in magnet_env_set_raddr_by_id() 2053 val->ptr); in magnet_env_set_raddr_by_id() 2056 buffer_copy_string_len(r->dst_addr_buf, val->ptr, val->len); in magnet_env_set_raddr_by_id() 2075 buffer_copy_string_len(&r->server_name_buf, val->ptr, val->len); 2083 const_buffer val = magnet_checkconstbuffer(L, 3); in magnet_env_set() local 2092 return magnet_env_set_uri_path_raw(r, &val); in magnet_env_set() 2098 return magnet_env_set_server_name(r, &val); in magnet_env_set() 2114 buffer_copy_string_len(dest, val.ptr, val.len); in magnet_env_set() 2186 const_buffer val = magnet_checkconstbuffer(L, 3); in magnet_envvar_set() local [all …]
|
| H A D | plugin_config.h | 221 #define plugin_stats_set(s, len, val) \ argument 222 (*array_get_int_ptr(&plugin_stats, (s), (len)) = (val))
|
| H A D | buffer.h | 126 void buffer_append_int(buffer *b, intmax_t val); 134 size_t li_itostrn(char *buf, size_t buf_len, intmax_t val); 136 size_t li_utostrn(char *buf, size_t buf_len, uintmax_t val);
|
| 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() 1060 const char *key = NULL, *val = NULL; in process_ssi_stmt() local 1065 val = l[i+1]; in process_ssi_stmt() 1074 if (key && val) { in process_ssi_stmt() 1075 array_set_key_value(p->ssi_vars, key, strlen(key), val, strlen(val)); in process_ssi_stmt() 1076 } else if (key || val) { in process_ssi_stmt()
|
| H A D | mod_fastcgi.c | 136 static int fcgi_env_add(void *venv, const char *key, size_t key_len, const char *val, size_t val_le… in fcgi_env_add() argument 141 if (!key || (!val && val_len)) return -1; in fcgi_env_add() 172 buffer_append_str3(env, len_enc, len_enc_len, key, key_len, val, val_len); in fcgi_env_add()
|
| H A D | algo_xxhash.h | 1709 xxh_u32 val; in XXH_read32() local 1710 XXH_memcpy(&val, memPtr, sizeof(val)); in XXH_read32() 1711 return val; in XXH_read32() 2352 xxh_u64 val; in XXH_read64() local 2353 XXH_memcpy(&val, memPtr, sizeof(val)); in XXH_read64() 2354 return val; in XXH_read64() 2459 static xxh_u64 XXH64_mergeRound(xxh_u64 acc, xxh_u64 val) in XXH64_mergeRound() argument 2461 val = XXH64_round(0, val); in XXH64_mergeRound() 2462 acc ^= val; in XXH64_mergeRound() 3137 XXH_FORCE_INLINE xxh_u64x2 XXH_vec_revb(xxh_u64x2 val) in XXH_vec_revb() argument [all …]
|
| H A D | configfile.c | 601 int val = config_plugin_value_tobool((data_unset *)ds, 2); in config_http_parseopts() local 602 if (2 == val) { in config_http_parseopts() 631 srv->srvconf.http_header_strict = val; in config_http_parseopts() 635 srv->srvconf.http_host_strict = val; in config_http_parseopts() 639 srv->srvconf.http_host_normalize = val; in config_http_parseopts() 643 srv->srvconf.http_method_get_body = val; in config_http_parseopts() 652 if (val) in config_http_parseopts() 1621 int val; in config_log_error_open_syslog() member 1668 facility = f->val; in config_log_error_open_syslog()
|
| H A D | network.c | 511 int val = (set_v6only > 0); in network_server_init() local 512 if (-1 == setsockopt(srv_socket->fd, IPPROTO_IPV6, IPV6_V6ONLY, &val, sizeof(val))) { in network_server_init()
|
| H A D | mod_cgi.c | 651 static int cgi_env_add(void *venv, const char *key, size_t key_len, const char *val, size_t val_len… in cgi_env_add() argument 654 if (!key || (!val && val_len)) return -1; in cgi_env_add() 663 if (val_len) memcpy(dst + key_len + 1, val, val_len); in cgi_env_add()
|
| H A D | mod_extforward.c | 311 int val = config_plugin_value_tobool(du, 2); in mod_extforward_parse_opts() local 312 if (2 == val) { in mod_extforward_parse_opts() 318 if (val) in mod_extforward_parse_opts()
|
| H A D | mod_mbedtls.c | 2483 if (n+2+len+1+name->val.len > sizeof(buf)) continue; in https_add_ssl_client_subject() 2490 for (size_t i = 0; i < name->val.len; ++i) { in https_add_ssl_client_subject() 2491 unsigned char c = name->val.p[i]; in https_add_ssl_client_subject() 2495 http_header_env_set(r, key, prelen+len, buf+n, name->val.len); in https_add_ssl_client_subject() 2496 n += name->val.len; in https_add_ssl_client_subject()
|
| H A D | gw_backend.c | 460 static int env_add(char_array *env, const char *key, size_t key_len, const char *val, size_t val_le… in env_add() argument 463 if (!key || !val) return -1; in env_add() 468 memcpy(dst + key_len + 1, val, val_len + 1); /* add the \0 from the value */ in env_add()
|
| /lighttpd1.4/ |
| H A D | NEWS | 1224 * [mod_accesslog] avoid alloc for parsing cookie val 1744 * [multiple] handle NULL val as empty in *_env_add (fixes #3030) 2318 * [core] do not emit req/response hdrs w/ blank val
|