Home
last modified time | relevance | path

Searched refs:array_get_element (Results 1 – 25 of 32) sorted by relevance

12

/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Dmod_extforward.c273 data_string* allds = (data_string *)array_get_element(p->conf.forwarder, "all"); in is_proxy_trusted()
283 return (data_string *)array_get_element(p->conf.forwarder, ipstr) ? IP_TRUSTED : IP_UNTRUSTED; in is_proxy_trusted()
299 if (!array_get_element(forwarder, ip)) { in last_not_in_array()
373 …if (NULL != (forwarded = (data_string*) array_get_element(con->request.headers, ds->value->ptr))) … in URIHANDLER_FUNC()
376 forwarded = (data_string *) array_get_element(con->request.headers,"X-Forwarded-For"); in URIHANDLER_FUNC()
377 …if (NULL == forwarded) forwarded = (data_string *) array_get_element(con->request.headers, "Forwa… in URIHANDLER_FUNC()
416 …data_string *forwarded_proto = (data_string *)array_get_element(con->request.headers, "X-Forwarded… in URIHANDLER_FUNC()
H A Dconfigfile-glue.c33 if (NULL == (du = array_get_element(ca, cv[i].key))) { in config_insert_values_internal()
195 if (NULL == (du = array_get_element(ca, cv[i].key))) { in config_insert_values_global()
409 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "Referer"))) { in config_check_cond_nocache()
418 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "Cookie"))) { in config_check_cond_nocache()
427 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "User-Agent"))) { in config_check_cond_nocache()
447 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "Accept-Language"))) { in config_check_cond_nocache()
H A Dmod_staticfile.c173 if (NULL != (ds = (data_string *)array_get_element(con->response.headers, "Content-Type"))) { in http_response_parse_range()
451 if (NULL == array_get_element(con->response.headers, "Content-Type")) { in URIHANDLER_FUNC()
473 if (NULL == array_get_element(con->response.headers, "ETag")) { in URIHANDLER_FUNC()
482 if (NULL == (ds = (data_string *)array_get_element(con->response.headers, "Last-Modified"))) { in URIHANDLER_FUNC()
498 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "If-Range"))) { in URIHANDLER_FUNC()
H A Dconfigparser.y49 if (NULL != (du = array_get_element(dc->value, key->ptr))) { in configparser_get_variable()
154 } else if (NULL == array_get_element(ctx->current->value, B->key->ptr)) { in key()
179 } else if (NULL != (du = array_get_element(vars, A->ptr))) { in key()
292 NULL == array_get_element(C, B->key->ptr)) { in aelements()
336 dc = (data_config *)array_get_element(ctx->srv->config_context, "global");
416 if (NULL != (dc = (data_config *)array_get_element(ctx->all_configs, b->ptr))) { in SRVVARNAME()
H A Dmod_auth.c233 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "Authorization"))) { in mod_auth_uri_handler()
241 method = (data_string *)array_get_element(req, "method"); in mod_auth_uri_handler()
277 method = (data_string *)array_get_element(req, "method"); in mod_auth_uri_handler()
278 realm = (data_string *)array_get_element(req, "realm"); in mod_auth_uri_handler()
436 if (NULL == (da = (data_array *)array_get_element(ca, "auth.require"))) continue; in SETDEFAULTS_FUNC()
H A Dstatus_counter.c22 if (NULL == (di = (data_integer *)array_get_element(srv->status, s))) { in status_counter_get_counter()
H A Dconfigparser.c52 if (NULL != (du = array_get_element(dc->value, key->ptr))) { in configparser_get_variable()
850 } else if (NULL == array_get_element(ctx->current->value, yymsp[0].minor.yy41->key->ptr)) { in yy_reduce()
879 } else if (NULL != (du = array_get_element(vars, yymsp[-2].minor.yy43->ptr))) { in yy_reduce()
1031 NULL == array_get_element(yymsp[-2].minor.yy40, yymsp[0].minor.yy41->key->ptr)) { in yy_reduce()
1096 dc = (data_config *)array_get_element(ctx->srv->config_context, "global"); in yy_reduce()
1202 if (NULL != (dc = (data_config *)array_get_element(ctx->all_configs, b->ptr))) { in yy_reduce()
H A Dmod_ssi_expr.c217 if (NULL != (ds = (data_string *)array_get_element(p->ssi_cgi_env, token->ptr))) { in ssi_expr_tokenizer()
219 } else if (NULL != (ds = (data_string *)array_get_element(p->ssi_vars, token->ptr))) { in ssi_expr_tokenizer()
H A Dhttp-header-glue.c97 if (NULL != (ds = (data_string *)array_get_element(con->response.headers, key))) { in response_header_overwrite()
112 if (NULL != (ds = (data_string *)array_get_element(con->response.headers, key))) { in response_header_append()
H A Dmod_cml_lua.c151 if (NULL != (d = array_get_element(con->request.headers, "Cookie"))) {
400 ds = (data_string *)array_get_element(con->response.headers, "Last-Modified"); in cache_parse_lua()
H A Darray.h170 data_unset *array_get_element(array *a, const char *key);
H A Darray.c119 data_unset *array_get_element(array *a, const char *key) { in array_get_element() function
153 if (NULL != (ds_dst = (data_string *)array_get_element(hdrs, key))) { in array_set_key_value()
H A Dmod_webdav.c1180 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "If"))) { in webdav_has_lock()
1230 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "Depth"))) { in URIHANDLER_FUNC()
1636 …if (NULL != (ds_range = (data_string *)array_get_element(con->request.headers, "Content-Range"))) { in URIHANDLER_FUNC()
1801 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "Destination"))) { in URIHANDLER_FUNC()
1808 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "Overwrite"))) { in URIHANDLER_FUNC()
2224 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "If"))) { in URIHANDLER_FUNC()
2388 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "If"))) { in URIHANDLER_FUNC()
2431 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "Lock-Token"))) { in URIHANDLER_FUNC()
H A Dconfigfile.c1149 if (NULL != (dc = (data_config *)array_get_element(srv->config_context, "global"))) { in config_read()
1155 if (NULL != (modules = (data_array *)array_get_element(srv->config, "server.modules"))) { in config_read()
1167 if (NULL == array_get_element(modules->value, "mod_indexfile")) { in config_read()
1180 if (NULL == array_get_element(modules->value, "mod_dirlisting")) { in config_read()
1186 if (NULL == array_get_element(modules->value, "mod_staticfile")) { in config_read()
H A Dmod_rewrite.c165 if (NULL != (du = array_get_element(ca, option))) { in parse_config_entry()
204 if (NULL != array_get_element(ca, option)) { in parse_config_entry()
H A Dmod_accesslog.c792 …if (NULL != (ds = (data_string *)array_get_element(con->request.headers, p->conf.parsed_format->pt… in REQUESTDONE_FUNC()
799 …if (NULL != (ds = (data_string *)array_get_element(con->response.headers, p->conf.parsed_format->p… in REQUESTDONE_FUNC()
806 …if (NULL != (ds = (data_string *)array_get_element(con->environment, p->conf.parsed_format->ptr[j]… in REQUESTDONE_FUNC()
H A Dmod_flv_streaming.c220 if (NULL == (get_param = (data_string *)array_get_element(p->get_params, "start"))) { in URIHANDLER_FUNC()
H A Dmod_usertrack.c182 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "Cookie"))) { in URIHANDLER_FUNC()
H A Dmod_redirect.c102 if (NULL == (du = array_get_element(ca, "url.redirect"))) { in SETDEFAULTS_FUNC()
H A Dmod_evhost.c302 …} else if (NULL != (ds = (data_string *)array_get_element(parsed_host,p->conf.path_pieces[i]->ptr)… in mod_evhost_uri_handler()
H A Dmod_magnet.c371 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, key))) { in magnet_reqhdr_get()
649 if (NULL != (ds = (data_string *)array_get_element(con->environment, key)) && ds->value->used) in magnet_cgi_get()
H A Dhttp_auth.c333 require = (data_string *)array_get_element(req, "require"); in http_auth_match_rules()
845 realm = (data_string *)array_get_element(req, "realm"); in http_auth_basic_check()
H A Dmod_proxy.c234 if (NULL != (du = array_get_element(ca, "proxy.server"))) { in SETDEFAULTS_FUNC()
317 if (NULL == (dfa = (data_array *)array_get_element(s->extensions, da_ext->key->ptr))) { in SETDEFAULTS_FUNC()
H A Dmod_trigger_b4_dl.c346 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "X-Forwarded-For"))) { in URIHANDLER_FUNC()
H A Drequest.c788 if (NULL != (ds = (data_string *)array_get_element(con->request.headers, key_b->ptr))) { in http_request_parse()

12