| /lighttpd1.4/src/ |
| H A D | array.c | 117 a->data = ck_realloc_u32((void**)&a->data, a->size,0,sizeof(*a->data)); in array_extend() 118 a->sorted = ck_realloc_u32((void**)&a->sorted,a->size,0,sizeof(*a->sorted)); in array_extend() 119 memset(a->data+a->used, 0, (a->size-a->used)*sizeof(*a->data)); in array_extend() 123 array *a = ck_calloc(1, sizeof(*a)); in array_init() local 125 return a; in array_init() 129 if (a->sorted) free(a->sorted); in array_free_data() 155 free(a); in array_free() 179 du = a->data[a->used]; 181 a->data[a->used] = NULL; 323 data_unset * const du = (a->used < a->size) ? a->data[a->used] : NULL; in array_get_unused_element() [all …]
|
| H A D | algo_sha1.c | 85 R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3); in SHA1_Transform() 86 R0(b,c,d,e,a, 4); R0(a,b,c,d,e, 5); R0(e,a,b,c,d, 6); R0(d,e,a,b,c, 7); in SHA1_Transform() 87 R0(c,d,e,a,b, 8); R0(b,c,d,e,a, 9); R0(a,b,c,d,e,10); R0(e,a,b,c,d,11); in SHA1_Transform() 88 R0(d,e,a,b,c,12); R0(c,d,e,a,b,13); R0(b,c,d,e,a,14); R0(a,b,c,d,e,15); in SHA1_Transform() 89 R1(e,a,b,c,d,16); R1(d,e,a,b,c,17); R1(c,d,e,a,b,18); R1(b,c,d,e,a,19); in SHA1_Transform() 90 R2(a,b,c,d,e,20); R2(e,a,b,c,d,21); R2(d,e,a,b,c,22); R2(c,d,e,a,b,23); in SHA1_Transform() 91 R2(b,c,d,e,a,24); R2(a,b,c,d,e,25); R2(e,a,b,c,d,26); R2(d,e,a,b,c,27); in SHA1_Transform() 92 R2(c,d,e,a,b,28); R2(b,c,d,e,a,29); R2(a,b,c,d,e,30); R2(e,a,b,c,d,31); in SHA1_Transform() 93 R2(d,e,a,b,c,32); R2(c,d,e,a,b,33); R2(b,c,d,e,a,34); R2(a,b,c,d,e,35); in SHA1_Transform() 94 R2(e,a,b,c,d,36); R2(d,e,a,b,c,37); R2(c,d,e,a,b,38); R2(b,c,d,e,a,39); in SHA1_Transform() [all …]
|
| H A D | algo_md5.c | 102 #define FF(a, b, c, d, x, s, ac) { \ argument 104 (a) = ROTATE_LEFT ((a), (s)); \ 105 (a) += (b); \ 107 #define GG(a, b, c, d, x, s, ac) { \ argument 109 (a) = ROTATE_LEFT ((a), (s)); \ 110 (a) += (b); \ 114 (a) = ROTATE_LEFT ((a), (s)); \ 115 (a) += (b); \ 119 (a) = ROTATE_LEFT ((a), (s)); \ 120 (a) += (b); \ [all …]
|
| H A D | array.h | 67 void array_free_data(array *a); 69 void array_free(array *a); 72 void array_reset_data_strings(array *a); 75 void array_insert_unique(array *a, data_unset *entry); 82 int array_is_vlist(const array *a); 86 int array_is_kvany(const array *a); 90 int array_is_kvarray(const array *a); 94 int array_is_kvstring(const array *a); 110 int * array_get_int_ptr(array *a, const char *k, uint32_t klen); 118 void array_insert_value(array *a, const char *v, uint32_t vlen); [all …]
|
| H A D | mod_expire.c | 147 pconf->expire_url = cpv->v.a; in mod_expire_merge_config_cpv() 150 pconf->expire_mimetypes = cpv->v.a; in mod_expire_merge_config_cpv() 194 const array *a = NULL; in SETDEFAULTS_FUNC() local 197 a = cpv->v.a; in SETDEFAULTS_FUNC() 200 for (uint32_t k = 0; k < cpv->v.a->used; ++k) { in SETDEFAULTS_FUNC() 201 data_string *ds = (data_string *)cpv->v.a->data[k]; in SETDEFAULTS_FUNC() 210 a = cpv->v.a; in SETDEFAULTS_FUNC() 214 *(const array **)&m = a; in SETDEFAULTS_FUNC() 229 if (NULL != a && a->used) { in SETDEFAULTS_FUNC() 231 a->used*2, sizeof(*p->toffsets)); in SETDEFAULTS_FUNC() [all …]
|
| H A D | mod_alias.c | 30 pconf->alias = cpv->v.a; in mod_alias_merge_config_cpv() 52 static int mod_alias_check_order(server * const srv, const array * const a) { in mod_alias_check_order() argument 53 for (uint32_t j = 0; j < a->used; ++j) { in mod_alias_check_order() 54 const buffer * const prefix = &a->data[j]->key; in mod_alias_check_order() 56 for (uint32_t k = j + 1; k < a->used; ++k) { in mod_alias_check_order() 57 const buffer * const key = &a->data[k]->key; in mod_alias_check_order() 65 const data_unset *dj = a->data[j]; in mod_alias_check_order() 66 const data_unset *dk = a->data[k]; in mod_alias_check_order() 67 const data_unset **data = (const data_unset **)a->data; in mod_alias_check_order() 101 if (cpv->v.a->used >= 2 && !mod_alias_check_order(srv,cpv->v.a)) in SETDEFAULTS_FUNC()
|
| H A D | mod_setenv.c | 48 pconf->request_header = cpv->v.a; in mod_setenv_merge_config_cpv() 51 pconf->response_header = cpv->v.a; in mod_setenv_merge_config_cpv() 54 pconf->environment = cpv->v.a; in mod_setenv_merge_config_cpv() 57 pconf->set_request_header = cpv->v.a; in mod_setenv_merge_config_cpv() 60 pconf->set_response_header = cpv->v.a; in mod_setenv_merge_config_cpv() 63 pconf->set_environment = cpv->v.a; in mod_setenv_merge_config_cpv() 85 array *a; in mod_setenv_prep_ext() local 86 *(const array **)&a = ac; in mod_setenv_prep_ext() 87 for (uint32_t i = 0; i < a->used; ++i) { in mod_setenv_prep_ext() 157 mod_setenv_prep_ext(cpv->v.a); in SETDEFAULTS_FUNC() [all …]
|
| H A D | buffer.h | 147 int buffer_eq_icase_ssn(const char * const a, const char * const b, const size_t len); 151 int buffer_eq_icase_ss(const char * const a, const size_t alen, const char * const b, const size_t … 163 int buffer_is_equal(const buffer *a, const buffer *b); 240 #define light_btst(a,b) ((a) & ((uint64_t)1uL << (b))) argument 241 #define light_bclr(a,b) ((a) &= ~((uint64_t)1uL << (b))) argument 242 #define light_bset(a,b) ((a) |= ((uint64_t)1uL << (b))) argument 245 void buffer_append_path_len(buffer * restrict b, const char * restrict a, size_t alen); /* join str…
|
| H A D | mod_userdir.c | 57 pconf->exclude_user = cpv->v.a; in mod_userdir_merge_config_cpv() 60 pconf->include_user = cpv->v.a; in mod_userdir_merge_config_cpv() 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() argument 158 for (uint32_t i = 0, used = a->used; i < used; ++i) { in mod_userdir_in_vlist_nc() 159 const data_string * const ds = (const data_string *)a->data[i]; 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() argument 166 for (uint32_t i = 0, used = a->used; i < used; ++i) { in mod_userdir_in_vlist() 167 const data_string * const ds = (const data_string *)a->data[i]; in mod_userdir_in_vlist()
|
| /lighttpd1.4/src/t/ |
| H A D | test_array.c | 14 array *a = array_init(0); in test_array_get_int_ptr() local 16 i = array_get_int_ptr(a, CONST_STR_LEN("abc")); in test_array_get_int_ptr() 19 i = array_get_int_ptr(a, CONST_STR_LEN("abc")); in test_array_get_int_ptr() 24 di = (data_integer *)array_get_element_klen(a, CONST_STR_LEN("abc")); in test_array_get_int_ptr() 28 array_free(a); in test_array_get_int_ptr() 33 array *a = array_init(0); in test_array_insert_value() local 35 array_insert_value(a, CONST_STR_LEN("def")); in test_array_insert_value() 36 ds = (data_string *)a->data[0]; in test_array_insert_value() 40 array_free(a); in test_array_insert_value() 45 array *a = array_init(0); in test_array_set_key_value() local [all …]
|
| H A D | test_mod_evhost.c | 15 …st_build_doc_root_path_loop(struct ttt *tt, size_t nelts, buffer *authority, buffer *b, array *a) { in test_mod_evhost_build_doc_root_path_loop() argument 20 mod_evhost_build_doc_root_path(b, a, authority, path_pieces); in test_mod_evhost_build_doc_root_path_loop() 29 array *a = array_init(0); in test_mod_evhost_build_doc_root_path() local 53 array_reset_data_strings(a); in test_mod_evhost_build_doc_root_path() 55 test_mod_evhost_build_doc_root_path_loop(tt1, sizeof(tt1)/sizeof(tt1[0]), authority, b, a); in test_mod_evhost_build_doc_root_path() 56 array_reset_data_strings(a); in test_mod_evhost_build_doc_root_path() 58 test_mod_evhost_build_doc_root_path_loop(tt2, sizeof(tt2)/sizeof(tt2[0]), authority, b, a); in test_mod_evhost_build_doc_root_path() 59 array_reset_data_strings(a); in test_mod_evhost_build_doc_root_path() 61 test_mod_evhost_build_doc_root_path_loop(tt3, sizeof(tt3)/sizeof(tt3[0]), authority, b, a); in test_mod_evhost_build_doc_root_path() 65 array_free(a); in test_mod_evhost_build_doc_root_path()
|
| /lighttpd1.4/doc/outdated/ |
| H A D | features.txt | 21 The document was inspired by a mail from David Phillips: 29 > considering installing and testing the latest version. From a 39 make up for a complete manual. 55 a FastCGI program can get run through the SSI interpreter. SSI can also do 61 access logging, plus a binary version of CLF that save space. 77 authorization information in a central database. 82 correctly (i.e. unlike past versions of thttpd) and can throttle on a 89 an open source web server, it nice to have a documented, consistent API, 94 There is no web based interface. Zeus has a complete web based interface 98 That is something that should be a special feature of Zeus. :) :: [all …]
|
| H A D | fastcgi.txt | 28 defined by http://www.fastcgi.com/ and is a 30 a web-application and a webserver. 56 lighttpd takes it a little bit further by providing a internal 61 than a e.g. load-balancer+apache+mod_php solution. 200 a PATH_INFO instead of part of SCRIPT_NAME. 286 for a new request before it kills itself. 337 Preparing PHP as a FastCGI program 346 If you already have a working installation of PHP on a 372 Starting a FastCGI-PHP 437 ``PATH_INFO`` `--enable-discard-path` needs a SCRIPT_FILENAME which is against the CGI spec, a [all …]
|
| H A D | magnet.txt | 4 a power-magnet 24 mod_magnet is a module to control the request handling in lighty. 61 order. If one of them a returning a status-code, the following scripts will not be executed. 121 If you want to set a response header for your request, you can add a field to the lighty.header[] t… 183 This is a bit simplistic, but it illustrates the idea: Take a text-file and cover it in a <pre> tag. 200 users, you can just send a maintenance page. 237 -- send the FLV header + a seek into the file 247 selecting a random file from a directory 250 Say, you want to send a random file (ad-content) from a directory. 256 * a special index-file names the highest number [all …]
|
| H A D | performance.txt | 10 * Prefer lighttpd defaults unless you have a reason to change a setting, 73 restrictions are required, prefer to run a separate lighttp instance under a 94 a bottleneck 98 - lighttpd can listen on a unix domain socket 100 and lighttpd mod_proxy can act as a reverse-proxy to a backend lighttpd 105 which is available as a package in many OS distros 111 (when using a sequence of regexes) 113 and using a blank target to indicate no modification 114 - consider using a blank match as a catch-all, rather than "^(.*)", 123 than a list of, say, 10 differenent file extensions [all …]
|
| H A D | cgi.txt | 14 The cgi module provides a CGI-conforming interface. 24 CGI programs allow you to enhance the functionality of the server in a very 32 file-extensions that are handled by a CGI program 42 To setup a executable which doesn't need the help of a external program you 43 just don't specify a handler for the extension. ::
|
| H A D | plugins.txt | 15 provides a flexible way to add specific functionality to lighttpd. 45 called once a second 47 called when the server received a SIGHUP 58 called after uri.path (a clean URI without .. and %20) is set 60 called at the end of the logical path handle to get a docroot 107 a pointer to the internal plugin data. 124 pass a list of options to ``config_insert_values`` and check if 146 called once a second 156 called if a SIGHUP is received (cycling logfiles, ...) 188 called when a docroot is needed [all …]
|
| H A D | traffic-shaping.txt | 25 a single connection or config context like a virtual host or a URL. 40 if you want to specify a limit for a special virtual server 54 Keep in mind that a limit below 32kb/s might actually limit the traffic to 32kb/s. This
|
| H A D | authentication.txt | 46 The Digest method only transfers a hashed value over the 47 network which performs a lot of work to harden the 73 separated by a colon. Each entry is terminated by a single 84 separated by a colon. Each entry is terminated by a single 100 password separated by a colon. Each entry is terminated 101 by a single newline. :: 133 to authenticate a user 168 # if enabled, startTLS needs a valid (base64-encoded) CA 182 # <realm> is a string to display in the dialog
|
| H A D | ssl.txt | 32 To enable SSL for the whole server you have to provide a valid 38 To enable SSL for a specific port, put the directives within a 49 If you have a .crt and a .key file, cat them together into a
|
| H A D | accesslog.txt | 38 if the name starts with a '|' the rest of the name is taken 39 as the name of a process which will be spawn and will get the 58 %% a percent sign 67 %a remote address 104 The accesslog module provides a special way to log content from the 105 application in a accesslog file. It can be used to log the session id into a 109 a %{...}o like ::
|
| H A D | rrdtool.txt | 24 RRD_ is a system to store and display time-series data (i.e. network 90 $RRDTOOL graph $OUTDIR/$OUTPRE-hour.png -a PNG --start -14400 $DISP 91 $RRDTOOL graph $OUTDIR/$OUTPRE-day.png -a PNG --start -86400 $DISP 92 $RRDTOOL graph $OUTDIR/$OUTPRE-month.png -a PNG --start -2592000 $DISP 108 $RRDTOOL graph $OUTDIR/$OUTPRE-hour.png -a PNG --start -14400 $DISP 109 $RRDTOOL graph $OUTDIR/$OUTPRE-day.png -a PNG --start -86400 $DISP 110 $RRDTOOL graph $OUTDIR/$OUTPRE-month.png -a PNG --start -2592000 $DISP
|
| H A D | configuration.txt | 62 # read configuration from output of a command 105 match on the remote IP or a remote Network 110 address and port a port number. Only equal match (==) is supported. 125 and <value> is either a quoted ("") literal string or regular expression. 140 # map all domains of a top-level-domain to a single document-root 223 difficulty setting server wide configuration inside a included-file from 257 without a Host: header and for all with a know hostname which you 333 list of files to search for if a directory is requested 339 if a name starts with slash this file will be used a index generator 417 maximum number of request within a keep-alive session before the server [all …]
|
| H A D | state.txt | 14 This is a short summary of the state-engine which is driving the lighttpd 30 the way each connection. Some of them are specific for a special operation 34 waiting for a connection 61 The connection is idling in the 'connect' state waiting for a connection. 66 The parsed request is handled by 'handlereq' and as soon as a decision out 82 As requests might contain a request-body the state 'readpost' entered as 102 the error condition the 'close' state is used the init a half-close and 108 The FastCGI, CGI, ... integration is done by introducing a loop in
|
| /lighttpd1.4/doc/ |
| H A D | newstyle.css | 4 a, a:active { selector 8 a:visited { 11 a:hover, a:focus {
|