Home
last modified time | relevance | path

Searched refs:mlen (Results 1 – 9 of 9) sorted by relevance

/lighttpd1.4/src/
H A Dalgo_hmac.c87 hmac_sha1_update(&ctx, mlen, (const uint8_t *)msg); in li_hmac_sha1()
108 (const unsigned char *)msg, mlen, in li_hmac_sha1()
125 HMAC_Update(hmac, (const unsigned char *)msg, mlen); in li_hmac_sha1()
135 UNUSED(mlen); in li_hmac_sha1()
146 UNUSED(mlen); in li_hmac_sha1()
163 hmac_sha256_update(&ctx, mlen, (const uint8_t *)msg); in li_hmac_sha256()
201 HMAC_Update(hmac, (const unsigned char *)msg, mlen); in li_hmac_sha256()
211 UNUSED(mlen); in li_hmac_sha256()
222 UNUSED(mlen); in li_hmac_sha256()
287 UNUSED(mlen); in li_hmac_sha512()
[all …]
H A Dalgo_hmac.h13 const unsigned char * const msg, const uint32_t mlen);
18 const unsigned char * const msg, const uint32_t mlen);
23 const unsigned char * const msg, const uint32_t mlen);
28 const unsigned char * const msg, const uint32_t mlen);
H A Dhttp_header.c146 …ntains_token (const char * const s, const uint32_t slen, const char * const m, const uint32_t mlen) in http_header_str_contains_token() argument
154 if (slen - i < mlen) return 0; in http_header_str_contains_token()
155 if (buffer_eq_icase_ssn(s+i, m, mlen)) { in http_header_str_contains_token()
156 i += mlen; in http_header_str_contains_token()
166 int http_header_remove_token (buffer * const b, const char * const m, const uint32_t mlen) in http_header_remove_token() argument
173 if (0 == strncasecmp(s, m, mlen)) { in http_header_remove_token()
174 s += mlen; in http_header_remove_token()
176 memset(s-mlen, ' ', mlen); in http_header_remove_token()
184 for (s -= mlen; *s != ',' && s != b->ptr; --s) ; in http_header_remove_token()
H A Dmod_proxy.c399 size_t mlen = buffer_clen(k); in http_header_remap_host_match() local
400 if (1 == mlen && k->ptr[0] == '-') { in http_header_remap_host_match()
409 mlen = buffer_clen(k); in http_header_remap_host_match()
411 if (buffer_eq_icase_ss(s, alen, k->ptr, mlen)) { in http_header_remap_host_match()
451 const size_t mlen = buffer_clen(&ds->key); in http_header_remap_urlpath() local
452 if (mlen <= plen && 0 == memcmp(s, ds->key.ptr, mlen)) { in http_header_remap_urlpath()
463 const size_t mlen = buffer_clen(&ds->value); in http_header_remap_urlpath() local
464 if (mlen <= plen && 0 == memcmp(s, ds->value.ptr, mlen)) { in http_header_remap_urlpath()
465 buffer_substr_replace(b, off, mlen, &ds->key); in http_header_remap_urlpath()
471 const size_t mlen = buffer_clen(&ds->value); in http_header_remap_urlpath() local
[all …]
H A Dhttp_chunk.c371 uint32_t mlen = buffer_clen(h); in http_chunk_decode_append_data() local
372 mlen = (r->conf.max_request_field_size > mlen) in http_chunk_decode_append_data()
373 ? r->conf.max_request_field_size - mlen in http_chunk_decode_append_data()
375 if ((off_t)mlen < len) { in http_chunk_decode_append_data()
380 buffer_append_string_len(h, mem, mlen); in http_chunk_decode_append_data()
H A Dchunk.c143 cfv->mlen = 0; in chunk_file_view_init()
154 munmap(cfv->mptr, (size_t)cfv->mlen); in __attribute_nonnull__()
1715 munmap(cfv->mptr, (size_t)cfv->mlen); in chunkqueue_chunk_file_viewadj()
1726 cfv->mlen = c->offset - cfv->foff + n; in chunkqueue_chunk_file_viewadj()
1730 if (cfv->mlen > mmap_chunk_size) in chunkqueue_chunk_file_viewadj()
1731 cfv->mlen = mmap_chunk_size; in chunkqueue_chunk_file_viewadj()
1735 cfv->mlen = MMAP_CHUNK_SIZE; in chunkqueue_chunk_file_viewadj()
1737 if (cfv->mlen < MMAP_CHUNK_SIZE) in chunkqueue_chunk_file_viewadj()
1738 cfv->mlen = MMAP_CHUNK_SIZE; in chunkqueue_chunk_file_viewadj()
1739 if (cfv->mlen > c->file.length - cfv->foff) in chunkqueue_chunk_file_viewadj()
[all …]
H A Dhttp_header.h111 int http_header_str_contains_token (const char *s, uint32_t slen, const char *m, uint32_t mlen);
113 int http_header_remove_token (buffer * const b, const char * const m, const uint32_t mlen);
H A Dchunk.h15 off_t mlen; /* length of mmap'ed area */ member
205 return cfv->mlen + cfv->foff - offset; in chunk_file_view_dlen()
H A Dconnections.c1595 const uint32_t mlen = buffer_clen(c->mem) - (size_t)c->offset; in connection_handle_read_post_cq_compact() local
1599 chunkqueue_compact_mem(cq, mlen + blen); in connection_handle_read_post_cq_compact()