Home
last modified time | relevance | path

Searched refs:dlen (Results 1 – 23 of 23) sorted by relevance

/lighttpd1.4/src/
H A Dalgo_hmac.c105 evp_siglen_t dlen = SHA_DIGEST_LENGTH; in li_hmac_sha1()
109 digest, &dlen)); in li_hmac_sha1()
126 unsigned int dlen; in li_hmac_sha1()
127 int rc = HMAC_Finish(hmac, digest, &dlen, SHA_DIGEST_LENGTH); in li_hmac_sha1()
181 evp_siglen_t dlen = SHA256_DIGEST_LENGTH; in li_hmac_sha256()
185 digest, &dlen)); in li_hmac_sha256()
202 unsigned int dlen; in li_hmac_sha256()
203 int rc = HMAC_Finish(hmac, digest, &dlen, SHA256_DIGEST_LENGTH); in li_hmac_sha256()
257 evp_siglen_t dlen = SHA512_DIGEST_LENGTH; in li_hmac_sha512()
261 digest, &dlen)); in li_hmac_sha512()
[all …]
H A Dchunk.c949 off_t dlen = 0; in chunkqueue_append_cqmem_to_tempfile() local
955 dlen += clen; in chunkqueue_append_cqmem_to_tempfile()
965 dlen = 0; in chunkqueue_append_cqmem_to_tempfile()
1002 if (dlen) { in chunkqueue_append_cqmem_to_tempfile()
1006 wr -= (ssize_t)dlen; in chunkqueue_append_cqmem_to_tempfile()
1388 if (0 != chunkqueue_peek_data(&cq, &data, &dlen, errh) && 0 == dlen) in chunkqueue_write_chunk_file_intermed()
1558 *dlen = 0; in chunkqueue_peek_data()
1570 if (*dlen) in chunkqueue_peek_data()
1574 *dlen += have; in chunkqueue_peek_data()
1642 if (*dlen == data_insz) in chunkqueue_peek_data()
[all …]
H A Dmod_authn_file.c274 if (pwd_len != (ai->dlen << 1)) continue; in mod_authn_file_htdigest_get_loop()
288 off_t dlen = 64*1024*1024;/*(arbitrary limit: 64 MB file; expect < 1 MB)*/ in mod_authn_file_htdigest_get() local
293 ck_memzero(data, (size_t)dlen); in mod_authn_file_htdigest_get()
310 ai.dlen = http_auth_digest_len(ai.dalgo); in mod_authn_file_htdigest_basic()
319 if (ai.dlen > sizeof(htdigest)) { in mod_authn_file_htdigest_basic()
320 ck_memzero(ai.digest, ai.dlen); in mod_authn_file_htdigest_basic()
327 int rc = (ck_memeq_const_time_fixed_len(htdigest, ai.digest, ai.dlen) in mod_authn_file_htdigest_basic()
330 ck_memzero(htdigest, ai.dlen); in mod_authn_file_htdigest_basic()
331 ck_memzero(ai.digest, ai.dlen); in mod_authn_file_htdigest_basic()
343 char *data = fdevent_load_file(auth_fn->ptr, &dlen, errh, malloc, free); in mod_authn_file_htpasswd_get()
[all …]
H A Dh2.c2074 const uint32_t len = dlen < fsize ? dlen : fsize; in h2_send_hpack()
2094 } while (dlen); in h2_send_hpack()
2574 if ((int32_t)dlen > r->h2_swin) dlen = (uint32_t)r->h2_swin;
2575 if ((int32_t)dlen > h2r->h2_swin) dlen = (uint32_t)h2r->h2_swin;
2596 const uint32_t len = dlen < fsize ? dlen : fsize;
2612 } while (dlen);
2648 if ((int32_t)dlen > r->h2_swin) dlen = (uint32_t)r->h2_swin; in h2_send_cqdata()
2649 if ((int32_t)dlen > h2r->h2_swin) dlen = (uint32_t)h2r->h2_swin; in h2_send_cqdata()
2651 if ((int32_t)dlen > cqlen) dlen = (uint32_t)cqlen; in h2_send_cqdata()
2676 const uint32_t len = dlen < fsize ? dlen : fsize-9; in h2_send_cqdata()
[all …]
H A Dmod_vhostdb.c44 uint32_t dlen; member
52 const uint32_t dlen = buffer_clen(docroot); in vhostdb_cache_entry_init() local
54 ck_malloc(sizeof(vhostdb_cache_entry) + slen + dlen); in vhostdb_cache_entry_init()
57 ve->dlen = dlen; in vhostdb_cache_entry_init()
61 memcpy(ve->document_root, docroot->ptr, dlen); in vhostdb_cache_entry_init()
265 buffer_copy_string_len(&r->physical.doc_root, ve->document_root, ve->dlen); in mod_vhostdb_found()
H A Dconfigfile-glue.c537 uint_fast32_t dlen = buffer_clen(&dc->string); in config_check_cond_nocache_eval() local
543 if (llen && llen != dlen) { in config_check_cond_nocache_eval()
544 match ^= ((llen > dlen) in config_check_cond_nocache_eval()
545 ? l->ptr[dlen] == ':' && llen - dlen <= 6 in config_check_cond_nocache_eval()
546 : dc->string.ptr[(dlen = llen)] == ':') in config_check_cond_nocache_eval()
547 && 0 == memcmp(l->ptr, dc->string.ptr, dlen); in config_check_cond_nocache_eval()
574 uint_fast32_t dlen = buffer_clen(&dc->string); in config_check_cond_nocache_eval() local
577 : llen - dlen; /*(underflow caught below)*/ in config_check_cond_nocache_eval()
578 match = !(dlen <= llen in config_check_cond_nocache_eval()
579 && 0 == memcmp(l->ptr+off, dc->string.ptr, dlen)); in config_check_cond_nocache_eval()
H A Dmod_auth.c50 uint32_t dlen; member
74 ae->dlen = pwlen; in http_auth_cache_entry_init()
90 ck_memzero(ae->pwdigest, ae->dlen); in http_auth_cache_entry_free()
295 ai->dlen = HTTP_AUTH_DIGEST_MD5_BINLEN; in mod_auth_algorithm_parse()
317 ai->dlen = HTTP_AUTH_DIGEST_MD5_BINLEN; in mod_auth_algorithm_parse()
912 iov[0].iov_len = ai->dlen*2; in mod_auth_digest_mutate()
940 iov[4].iov_len = ai->dlen*2; in mod_auth_digest_mutate()
949 iov[0].iov_len = ai->dlen*2; in mod_auth_digest_mutate()
973 iov[n].iov_len = ai->dlen*2; in mod_auth_digest_mutate()
1147 && ae->dlen == ai->dlen in mod_auth_digest_get()
[all …]
H A Dmod_wolfssl.c680 buffer_copy_string_len(certs[0], data, dlen); in mod_wolfssl_load_pem_file()
724 if (dlen) ck_memzero(data, dlen); in mod_wolfssl_load_pem_file()
774 buffer_copy_string_len(pkey, data, dlen); in mod_wolfssl_evp_pkey_load_pem_file()
790 if (dlen) ck_memzero(data, dlen); in mod_wolfssl_evp_pkey_load_pem_file()
818 (long)dlen) in mod_wolfssl_CTX_use_certificate_chain_file()
824 if (dlen) ck_memzero(data, dlen); in mod_wolfssl_CTX_use_certificate_chain_file()
963 if (dlen) ck_memzero(data, dlen); in mod_wolfssl_load_cacrls()
992 if (dlen) ck_memzero(data, dlen); in mod_wolfssl_load_verify_locn()
1421 b->used = (uint32_t)dlen; in mod_openssl_load_stapling_file()
1422 b->size = (uint32_t)dlen+1; in mod_openssl_load_stapling_file()
[all …]
H A Dmod_mbedtls.c852 char *data = fdevent_load_file(fn, &dlen, NULL, malloc, free); in mod_mbedtls_x509_crl_parse_file()
855 rc = mbedtls_x509_crl_parse(chain, (unsigned char *)data, (size_t)dlen+1); in mod_mbedtls_x509_crl_parse_file()
857 if (dlen) ck_memzero(data, (size_t)dlen); in mod_mbedtls_x509_crl_parse_file()
920 char *data = fdevent_load_file(fn, &dlen, NULL, malloc, free); in mod_mbedtls_x509_crt_parse_acme()
945 if (dlen) ck_memzero(data, (size_t)dlen); in mod_mbedtls_x509_crt_parse_acme()
959 char *data = fdevent_load_file(fn, &dlen, NULL, malloc, free); in mod_mbedtls_x509_crt_parse_file()
964 if (dlen) ck_memzero(data, (size_t)dlen); in mod_mbedtls_x509_crt_parse_file()
976 char *data = fdevent_load_file(fn, &dlen, NULL, malloc, free); in mod_mbedtls_pk_parse_keyfile()
981 rc = mbedtls_pk_parse_key(ctx, (unsigned char *)data, (size_t)dlen+1, in mod_mbedtls_pk_parse_keyfile()
986 rc = mbedtls_pk_parse_key(ctx, (unsigned char *)data, (size_t)dlen+1, in mod_mbedtls_pk_parse_keyfile()
[all …]
H A Dconfigfile.c2177 size_t dlen; in config_parse_stdin() local
2183 dlen = buffer_clen(b); in config_parse_stdin()
2186 if (dlen >= 32*1024*1024) { in config_parse_stdin()
2193 n = read(STDIN_FILENO, b->ptr+dlen, avail); in config_parse_stdin()
2197 rc = dlen ? config_parse(srv, context, "-", b->ptr, (int)dlen) : 0; in config_parse_stdin()
2201 if (dlen) in config_parse_stdin()
2202 ck_memzero(b->ptr, dlen); in config_parse_stdin()
2209 char *data = fdevent_load_file(fn, &dlen, NULL, malloc, free); in config_parse_file_stream()
2217 if (dlen) { in config_parse_file_stream()
2218 rc = config_parse(srv, context, fn, data, (int)dlen); in config_parse_file_stream()
[all …]
H A Dchunk.h162 int chunkqueue_peek_data (chunkqueue *cq, char **data, uint32_t *dlen, log_error_st * restrict errh…
163 int chunkqueue_read_data (chunkqueue *cq, char *data, uint32_t dlen, log_error_st * restrict errh);
H A Dmod_openssl.c1310 char *data = fdevent_load_file(file, &dlen, errh, malloc, free); in mod_openssl_load_pem_file()
1313 BIO *in = BIO_new_mem_buf(data, (int)dlen); in mod_openssl_load_pem_file()
1317 if (dlen) ck_memzero(data, dlen); in mod_openssl_load_pem_file()
1340 if (dlen) ck_memzero(data, dlen); in mod_openssl_load_pem_file()
1350 char *data = fdevent_load_file(file, &dlen, errh, malloc, free); in mod_openssl_evp_pkey_load_pem_file()
1353 BIO *in = BIO_new_mem_buf(data, (int)dlen); in mod_openssl_evp_pkey_load_pem_file()
1360 if (dlen) ck_memzero(data, dlen); in mod_openssl_evp_pkey_load_pem_file()
1397 char *data = fdevent_load_file(file, &dlen, errh, malloc, free); in mod_openssl_load_stapling_file()
1407 b->used = (uint32_t)dlen; in mod_openssl_load_stapling_file()
1408 b->size = (uint32_t)dlen+1; in mod_openssl_load_stapling_file()
[all …]
H A Dmod_magnet.c767 uint32_t dlen = 0; in magnet_md_once() local
774 dlen = SHA512_DIGEST_LENGTH; in magnet_md_once()
781 dlen = SHA256_DIGEST_LENGTH; in magnet_md_once()
790 dlen = SHA1_DIGEST_LENGTH; in magnet_md_once()
799 dlen = MD5_DIGEST_LENGTH; in magnet_md_once()
807 if (dlen) { in magnet_md_once()
829 uint32_t dlen = 0; in magnet_hmac_once() local
837 dlen = SHA512_DIGEST_LENGTH; in magnet_hmac_once()
844 dlen = SHA256_DIGEST_LENGTH; in magnet_hmac_once()
853 dlen = SHA1_DIGEST_LENGTH; in magnet_hmac_once()
[all …]
H A Dmod_ajp13.c220 for (off_t dlen; sent < max_bytes; sent += dlen) { in ajp13_stdin_append() local
221 dlen = max_bytes - sent > AJP13_MAX_PACKET_SIZE - 4 in ajp13_stdin_append()
232 ajp13_enc_uint16_nc(hdr+2, (uint32_t)dlen); in ajp13_stdin_append()
237 chunkqueue_steal(&hctx->wb, req_cq, dlen); in ajp13_stdin_append()
H A Dmod_auth_api.h62 unsigned int dlen; member
H A Dh2.h107 uint32_t h2_send_cqdata (request_st *r, connection *con, struct chunkqueue *cq, uint32_t dlen);
H A Dconnections.c1252 uint32_t dlen = (r->h2_prio & 1) ? 32768-18 : 8192; in connection_state_machine_h2() local
1253 if (dlen > (uint32_t)max_bytes) dlen = (uint32_t)max_bytes; in connection_state_machine_h2()
1254 dlen = h2_send_cqdata(r, con, &r->write_queue, dlen); in connection_state_machine_h2()
1255 if (dlen) { /*(do not resched (spin) if swin empty window)*/ in connection_state_machine_h2()
1256 max_bytes -= (off_t)dlen; in connection_state_machine_h2()
H A Dmod_dirlisting.c988 const uint32_t dlen = buffer_clen(&r->physical.path); in http_open_directory() local
996 hctx->name_max = PATH_MAX - dlen - 1; in http_open_directory()
998 hctx->path = ck_malloc(dlen + hctx->name_max + 1); in http_open_directory()
999 memcpy(hctx->path, r->physical.path.ptr, dlen+1); in http_open_directory()
1001 hctx->path_file = hctx->path + dlen; in http_open_directory()
H A Dhttp-header-glue.c1074 …_response_check_1xx (request_st * const r, buffer * const restrict b, uint32_t hlen, uint32_t dlen) in http_response_check_1xx() argument
1082 if (dlen) in http_response_check_1xx()
1083 memmove(b->ptr, b->ptr+hlen, dlen); in http_response_check_1xx()
1084 buffer_truncate(b, dlen); in http_response_check_1xx()
H A Dmod_authn_dbi.c537 if (len == (ai->dlen << 1) in mod_authn_dbi_query()
568 ai.dlen = 0; in mod_authn_dbi_basic()
H A Dmod_gnutls.c225 off_t dlen = 512*1024*1024;/*(arbitrary limit: 512 MB file; expect < 1 MB)*/ in mod_gnutls_load_file() local
226 char *data = fdevent_load_file(fn, &dlen, errh, gnutls_malloc, gnutls_free); in mod_gnutls_load_file()
229 d->size = (unsigned int)dlen; in mod_gnutls_load_file()
1505 const unsigned char *data, unsigned int dlen) in mod_gnutls_client_hello_ext_cb() argument
1509 return mod_gnutls_SNI((handler_ctx *)ctx, data, dlen); in mod_gnutls_client_hello_ext_cb()
1512 return mod_gnutls_ALPN((handler_ctx *)ctx, data, dlen); in mod_gnutls_client_hello_ext_cb()
H A Dmod_nss.c335 off_t dlen = 512*1024*1024;/*(arbitrary limit: 512 MB file; expect < 1 MB)*/ in mod_nss_load_file() local
336 char *data = fdevent_load_file(fn, &dlen, errh, PORT_Alloc, PORT_Free); in mod_nss_load_file()
340 d->len = (unsigned int)dlen; in mod_nss_load_file()
1279 unsigned int dlen = 0; in mod_nss_acme_tls_1() local
1284 dlen = sizeof(d); in mod_nss_acme_tls_1()
1289 SSL_ConfigServerCert(hctx->ssl, ssl_pemfile_x509, pkey, data, dlen); in mod_nss_acme_tls_1()
H A Dmod_webdav.c3868 uint32_t dlen = sizeof(buf); in webdav_parse_chunkqueue() local
3869 if (0 == chunkqueue_peek_data(cq, &data, &dlen, r->conf.errh)) { in webdav_parse_chunkqueue()
3871 weHave = dlen; in webdav_parse_chunkqueue()