| /lighttpd1.4/src/ |
| H A D | buffer.h | 75 void buffer_commit(buffer *b, size_t size); 108 void buffer_append_str2(buffer * restrict b, const char *s1, size_t len1, const char *s2, size_t le… 109 …d_str3(buffer * restrict b, const char *s1, size_t len1, const char *s2, size_t len2, const char *… 115 size_t iov_len; 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); 141 void li_tohex_lc(char * restrict buf, size_t buf_len, const char * restrict s, size_t s_len); 143 void li_tohex_uc(char * restrict buf, size_t buf_len, const char * restrict s, size_t s_len); 151 int buffer_eq_icase_ss(const char * const a, const size_t alen, const char * const b, const size_t … 166 void buffer_substr_replace (buffer * restrict b, size_t offset, size_t len, const buffer * restrict… [all …]
|
| H A D | buffer.c | 55 const size_t psz = sz; in __attribute_nonnull__() 148 size_t sz = b->used; in buffer_commit() 219 size_t len = 0; in buffer_append_iovec() 220 for (size_t i = 0; i < n; ++i) in buffer_append_iovec() 223 for (size_t i = 0; i < n; ++i) { in buffer_append_iovec() 348 size_t li_itostrn(char *buf, size_t buf_len, intmax_t val) { in li_itostrn() 351 size_t len = (size_t)(p_buf+sizeof(p_buf)-str); in li_itostrn() 357 size_t li_utostrn(char *buf, size_t buf_len, uintmax_t val) { in li_utostrn() 360 size_t len = (size_t)(p_buf+sizeof(p_buf)-str); in li_utostrn() 592 size_t d_len, ndx; in buffer_append_string_encoded() [all …]
|
| H A D | base64.c | 40 size_t li_base64_dec(unsigned char * const result, const size_t out_length, const char * const in, … in li_base64_dec() 49 size_t i = 0; in li_base64_dec() 50 size_t out_pos = 0; in li_base64_dec() 90 size_t li_base64_enc(char * const restrict out, const size_t out_length, const unsigned char * cons… in li_base64_enc() 91 size_t i; in li_base64_enc() 92 size_t out_pos = 0; in li_base64_enc() 154 const size_t reserve = (in_length+2)/3*4; in buffer_append_base64_enc() 156 const size_t out_pos = in buffer_append_base64_enc() 165 unsigned char* buffer_append_base64_decode(buffer *out, const char* in, size_t in_length, base64_ch… in buffer_append_base64_decode() 166 const size_t reserve = 3*(in_length/4) + 3; in buffer_append_base64_decode() [all …]
|
| H A D | ck.h | 24 typedef size_t rsize_t; 34 typedef size_t rsize_t; 39 errno_t ck_getenv_s (size_t * restrict len, char * restrict value, rsize_t maxsize, const char * re… 59 int ck_memeq_const_time (const void *a, size_t alen, const void *b, size_t blen); 65 int ck_memeq_const_time_fixed_len (const void *a, const void *b, size_t len); 72 void * ck_malloc (size_t nbytes); 78 void * ck_calloc (size_t nmemb, size_t elt_sz); 86 void * ck_realloc_u32 (void **list, size_t n, size_t x, size_t elt_sz);
|
| H A D | vector.c | 8 static inline size_t vector_align_size(size_t s) { in vector_align_size() 9 size_t a = (s + 15) & ~(size_t)15uL; in vector_align_size() 15 void *vector_resize(void *data, size_t elem_size, size_t *size, size_t used, size_t x) { in vector_resize() 19 const size_t total_size = elem_size * *size; in vector_resize() 20 const size_t used_size = elem_size * used; in vector_resize()
|
| H A D | algo_xxhash.h | 3933 size_t i; in XXH3_accumulate_512_avx2() 3963 size_t i; in XXH3_scrambleAcc_avx2() 4039 size_t i; in XXH3_accumulate_512_sse2() 4069 size_t i; in XXH3_scrambleAcc_sse2() 4138 size_t i; in XXH3_accumulate_512_neon() 4239 size_t i; in XXH3_accumulate_512_vsx() 4304 size_t i; in XXH3_accumulate_512_scalar() 4313 size_t i; in XXH3_scrambleAcc_scalar() 4453 size_t n; in XXH3_accumulate() 4474 size_t n; in XXH3_hashLong_internal_loop() [all …]
|
| H A D | sys-crypto-md.h | 37 MD4_Update(MD4_CTX *ctx, const void *data, size_t length) in MD4_Update() 58 MD5_Update(MD5_CTX *ctx, const void *data, size_t length) in MD5_Update() 79 SHA1_Update(SHA_CTX *ctx, const void *data, size_t length) in SHA1_Update() 174 MD4_Update(MD4_CTX *ctx, const void *data, size_t length) in MD4_Update() 206 MD5_Update(MD5_CTX *ctx, const void *data, size_t length) in MD5_Update() 242 SHA1_Update(SHA_CTX *ctx, const void *data, size_t length) in SHA1_Update() 362 MD4_Update(MD4_CTX *ctx, const void *data, size_t length) in MD4_Update() 388 MD5_Update(MD5_CTX *ctx, const void *data, size_t length) in MD5_Update() 414 SHA1_Update(SHA_CTX *ctx, const void *data, size_t length) in SHA1_Update() 687 MD5_Update(MD5_CTX *ctx, const void *data, size_t length) in MD5_Update() [all …]
|
| H A D | base64.h | 12 size_t li_base64_dec(unsigned char *result, size_t out_length, const char *in, size_t in_length, ba… 14 unsigned char* buffer_append_base64_decode(buffer *out, const char* in, size_t in_length, base64_ch… 16 size_t li_base64_enc(char* restrict out, size_t out_length, const unsigned char* restrict in, size_… 24 char* buffer_append_base64_enc(buffer *out, const unsigned char* in, size_t in_length, base64_chars…
|
| H A D | ck.c | 75 typedef void *(*ck_memclear_func_t)(void *, int, size_t); 93 ck_memset_compat(void *s, int c, size_t n) in ck_memset_compat() 170 ck_getenv_s (size_t * const restrict len, 191 const size_t vlen = strlen(v); 251 const size_t errlen = strlen(errstr); in ck_strerror_s() 278 ck_memeq_const_time (const void *a, size_t alen, const void *b, size_t blen) in ck_memeq_const_time() 299 for (size_t i = 0, j = 0; lim; --lim) { in ck_memeq_const_time() 317 for (size_t i = 0; i < len; ++i) { in ck_memeq_const_time_fixed_len() 325 ck_malloc (size_t nbytes) in ck_malloc() 334 ck_calloc (size_t nmemb, size_t elt_sz) in ck_calloc() [all …]
|
| H A D | vector.h | 10 void *vector_resize(void *data, size_t elem_size, size_t *size, size_t used, size_t x); 15 size_t used; \ 16 size_t size; \ 28 if (release) for (size_t i = 0; i < v->used; ++i) release(v->data[i]); \ 38 static inline void vector_ ## name ## _reserve(vector_ ## name *v, size_t p) { \
|
| H A D | chunk.h | 57 ssize_t chunk_file_pread (int fd, void *buf, size_t count, off_t offset); 67 size_t chunk_buffer_prepare_append (buffer *b, size_t sz); 76 void chunkqueue_set_chunk_size (size_t sz); 88 void chunkqueue_append_mem(chunkqueue * restrict cq, const char * restrict mem, size_t len); /* cop… 89 void chunkqueue_append_mem_min(chunkqueue * restrict cq, const char * restrict mem, size_t len); /*… 98 buffer * chunkqueue_prepend_buffer_open_sz(chunkqueue *cq, size_t sz); 106 buffer * chunkqueue_append_buffer_open_sz(chunkqueue *cq, size_t sz); 113 int chunkqueue_append_mem_to_tempfile(chunkqueue * restrict cq, const char * restrict mem, size_t l… 133 char * chunkqueue_get_memory(chunkqueue * restrict cq, size_t * restrict len); 135 void chunkqueue_use_memory(chunkqueue * restrict cq, chunk *ckpt, size_t len); [all …]
|
| H A D | chunk.c | 66 static size_t chunk_buf_sz = 8192; 75 size_t x = 1024; in chunkqueue_set_chunk_size() 129 static chunk *chunk_init_sz(size_t sz) { in chunk_init_sz() 326 size_t chunk_buffer_prepare_append(buffer * const b, size_t sz) { in chunk_buffer_prepare_append() 364 const size_t sz = c->mem->size; in chunk_release() 898 if ((size_t) written == len) { in chunkqueue_append_mem_to_tempfile() 907 len -= (size_t)written; in chunkqueue_append_mem_to_tempfile() 1082 len -= (size_t)wr; in chunkqueue_append_splice_pipe_tempfile() 1441 const size_t len = buffer_clen(c->mem) - (size_t)c->offset; in chunkqueue_write_chunk_mem() 1469 const size_t len = (size_t)(c->file.length - c->offset); in chunkqueue_write_chunk_to_pipe() [all …]
|
| H A D | mod_proxy.c | 399 size_t mlen = buffer_clen(k); in http_header_remap_host_match() 430 static size_t http_header_remap_host (buffer *b, size_t off, http_header_remap_opts *remap_hdrs, in… in http_header_remap_host() 442 static size_t http_header_remap_urlpath (buffer *b, size_t off, http_header_remap_opts *remap_hdrs,… in http_header_remap_urlpath() 491 size_t slen; /*(scheme len)*/ in http_header_remap_uri() 498 off = (size_t)(s - b->ptr); in http_header_remap_uri() 546 size_t len; in http_header_remap_setcookie() 575 size_t alen = 0; in http_header_remap_setcookie() 597 size_t j = 0; in buffer_append_string_backslash_escaped() 600 for (size_t i = 0; i < len; ++i) { in buffer_append_string_backslash_escaped() 630 size_t used = buffer_clen(xff); in proxy_set_Forwarded() [all …]
|
| H A D | mod_authn_file.c | 206 size_t u_len, r_len; in mod_authn_file_htdigest_get_loop() 242 size_t uh_len = n - f_userhash; in mod_authn_file_htdigest_get_loop() 293 ck_memzero(data, (size_t)dlen); in mod_authn_file_htdigest_get() 354 size_t u_len; in mod_authn_file_htpasswd_get() 382 size_t pwd_len = n - f_pwd; in mod_authn_file_htpasswd_get() 392 ck_memzero(data, (size_t)dlen); in mod_authn_file_htpasswd_get() 471 static size_t apr_md5_encode(const char *pw, const char *salt, char *result, size_t nbytes) { in apr_md5_encode() 474 const size_t pwlen = strlen(pw); in apr_md5_encode() 555 for (size_t i = pwlen; i != 0; i >>= 1) { in apr_md5_encode() 638 size_t slen = (NULL != e) ? (size_t)(e - b) : sizeof(sample); in mod_authn_file_crypt_cmp() [all …]
|
| H A D | request.c | 201 const size_t blen = buffer_clen(b); in http_request_host_normalize() 224 size_t n = colon ? (size_t)(colon - p) : blen; in http_request_host_normalize() 241 size_t len; in http_request_host_normalize() 282 len += (size_t)(bracket - percent); in http_request_host_normalize() 540 const size_t hostlen = nuri - host; in http_request_parse_reqline_uri() 861 size_t len = hoff[2]; in http_request_parse_reqline() 908 size_t i = 0; in http_request_parse_reqline() 924 len = (size_t)(p - uri - 1); in http_request_parse_reqline() 929 len = (size_t)(p - uri - 1); in http_request_parse_reqline() 1021 size_t rlen = buffer_clen(target); in http_request_parse_target() [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() 146 size_t 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() 187 size_t offset; in scgi_create_env() 188 size_t rsz = (size_t)(r->read_queue.bytes_out - hctx->wb.bytes_in); in scgi_create_env() 206 size_t len; in scgi_create_env() 217 size_t len = buffer_clen(b)-10; in scgi_create_env()
|
| H A D | burl.c | 66 memcpy(p, s, (size_t)i); in burl_normalize_basic_unreserved_fix() 93 buffer_copy_string_len(b, (char *)p, (size_t)j); in burl_normalize_basic_unreserved_fix() 117 buffer_truncate(b, (size_t)i); in burl_normalize_basic_unreserved() 139 memcpy(p, s, (size_t)i); in burl_normalize_basic_required_fix() 169 buffer_copy_string_len(b, (char *)p, (size_t)j); in burl_normalize_basic_required_fix() 197 buffer_truncate(b, (size_t)i); in burl_normalize_basic_required() 266 memmove(s+j, s+qs, (size_t)qslen); in burl_normalize_2F_to_slash_fix() 474 static void burl_offset_tolower (buffer * const b, const size_t off) in burl_offset_tolower() 485 static void burl_offset_toupper (buffer * const b, const size_t off) in burl_offset_toupper() 496 void burl_append (buffer * const b, const char * const str, const size_t len, const int flags) in burl_append() [all …]
|
| H A D | keyvalue.c | 192 const size_t off = (size_t)ovec[(num <<= 1)]; /*(num *= 2)*/ in pcre_keyvalue_buffer_append_match() 193 const size_t len = (size_t)ovec[num+1] - off; in pcre_keyvalue_buffer_append_match() 207 const size_t off = (size_t)ovec[(num <<= 1)]; /*(num *= 2)*/ in pcre_keyvalue_buffer_append_ctxmatch() 208 const size_t len = (size_t)ovec[num+1] - off; in pcre_keyvalue_buffer_append_ctxmatch() 361 const size_t pattern_len = buffer_clen(patternb); in pcre_keyvalue_buffer_subst() 362 size_t start = 0; in pcre_keyvalue_buffer_subst() 368 for (size_t k = 0; k + 1 < pattern_len; ++k) { in pcre_keyvalue_buffer_subst() 376 k += (size_t)num; in pcre_keyvalue_buffer_subst() 508 buffer_copy_string_len(b, (char *)p, (size_t)j); in pcre_keyvalue_burl_percent_high_UTF8() 533 buffer_copy_string_len(b, (char *)p, (size_t)j); in pcre_keyvalue_burl_percent_percent_high_UTF8()
|
| H A D | log.c | 84 ssize_t write_all(int fd, const void * const buf, size_t count) { in write_all() 128 const size_t nlen = in __attribute_nonnull__() 165 const char * const s, const size_t n) in log_buffer_append_encoded() 167 size_t i; in log_buffer_append_encoded() 185 size_t blen = buffer_clen(b); in __attribute_nonnull__() 186 size_t bsp = buffer_string_space(b)+1; in __attribute_nonnull__() 315 const size_t len, in log_error_multiline() 338 size_t n = (size_t)(pos - current_line); in log_error_multiline()
|
| H A D | rand.c | 132 static int li_getentropy (void *buf, size_t buflen) in li_getentropy() 174 if (0 == li_getentropy(buf, (size_t)num)) return 1; in li_rand_device_bytes() 186 rd = read(fd, buf, (size_t)num); in li_rand_device_bytes() 223 const size_t length = sizeof(key); in li_arcfour_init_random_key_hashed() 440 if (0 == gnutls_rnd(GNUTLS_RND_NONCE, buf, (size_t)num)) return; in li_rand_pseudo_bytes() 448 if (0 == mbedtls_ctr_drbg_random(&ctr_drbg, buf, (size_t)num)) return; in li_rand_pseudo_bytes() 463 if (0 == gnutls_rnd(GNUTLS_RND_RANDOM, buf, (size_t)num)) return 1; in li_rand_bytes() 479 nettle_yarrow256_random(&yarrow256_ctx, (size_t)num, (uint8_t *)buf); in li_rand_bytes() 499 && 0 == mbedtls_entropy_func(&entropy, buf, (size_t)num)) { in li_rand_bytes()
|
| H A D | mod_auth_api.h | 64 size_t ulen; 66 size_t rlen; 101 … http_auth_setenv(request_st *r, const char *username, size_t ulen, const char *auth_type, size_t …
|
| H A D | mod_userdir.c | 157 static int mod_userdir_in_vlist_nc(const array * const a, const char * const k, const size_t klen) { in mod_userdir_in_vlist_nc() 165 static int mod_userdir_in_vlist(const array * const a, const char * const k, const size_t klen) { in mod_userdir_in_vlist() 174 …onstruct(request_st * const r, plugin_data * const p, const char * const uptr, const size_t ulen) { in mod_userdir_docroot_construct() 203 const size_t plen = strlen(pwd->pw_dir); in mod_userdir_docroot_construct() 233 for (size_t i = 0; i < ulen; ++i) { in mod_userdir_docroot_construct() 241 for (size_t i = 0; i < ulen; ++i) { in mod_userdir_docroot_construct() 308 const size_t ulen = (size_t)(rel_url - uptr); in URIHANDLER_FUNC()
|
| /lighttpd1.4/src/t/ |
| H A D | test_burl.c | 8 …psrc, buffer *ptmp, int flags, int line, const char *in, size_t in_len, const char *out, size_t ou… in run_burl_normalize() 12 if (out_len == (size_t)-2) { in run_burl_normalize() 61 run_burl_normalize(psrc, ptmp, flags, __LINE__, CONST_STR_LEN("/%C0"), "", (size_t)-2); in test_burl_normalize() 62 run_burl_normalize(psrc, ptmp, flags, __LINE__, CONST_STR_LEN("/\375"), "", (size_t)-2); in test_burl_normalize() 63 run_burl_normalize(psrc, ptmp, flags, __LINE__, CONST_STR_LEN("/\376"), "", (size_t)-2); in test_burl_normalize() 64 run_burl_normalize(psrc, ptmp, flags, __LINE__, CONST_STR_LEN("/\377"), "", (size_t)-2); in test_burl_normalize() 91 run_burl_normalize(psrc, ptmp, flags, __LINE__, CONST_STR_LEN("/\375"), "", (size_t)-2); in test_burl_normalize() 92 run_burl_normalize(psrc, ptmp, flags, __LINE__, CONST_STR_LEN("/\376"), "", (size_t)-2); in test_burl_normalize() 96 run_burl_normalize(psrc, ptmp, flags, __LINE__, CONST_STR_LEN("/\a"), "", (size_t)-2); in test_burl_normalize() 97 run_burl_normalize(psrc, ptmp, flags, __LINE__, CONST_STR_LEN("/\t"), "", (size_t)-2); in test_burl_normalize() [all …]
|
| H A D | test_mod_evhost.c | 10 size_t plen; 12 size_t elen; 15 static void test_mod_evhost_build_doc_root_path_loop(struct ttt *tt, size_t nelts, buffer *authorit… in test_mod_evhost_build_doc_root_path_loop() 16 for (size_t i = 0; i < nelts; ++i) { in test_mod_evhost_build_doc_root_path_loop()
|
| /lighttpd1.4/src/ls-hpack/ |
| H A D | lsxpack_header.h | 69 const char *val, size_t val_len) in lsxpack_header_set_idx() 82 const char *val, size_t val_len) in lsxpack_header_set_qpack_idx() 96 size_t name_offset, size_t name_len, in lsxpack_header_set_offset() 97 size_t val_len) in lsxpack_header_set_offset() 113 size_t name_offset, size_t name_len, in lsxpack_header_set_offset2() 114 size_t val_offset, size_t val_len) in lsxpack_header_set_offset2() 130 char *out, size_t offset, size_t len) in lsxpack_header_prepare_decode() 154 static inline size_t
|