Home
last modified time | relevance | path

Searched refs:rlen (Results 1 – 10 of 10) sorted by relevance

/lighttpd1.4/tests/
H A Dscgi-responder.c39 char * const end = r+rlen; in scgi_getenv()
60 unsigned long rlen; in scgi_process() local
94 rlen = strtoul(buf, &p, 10); in scgi_process()
97 if (rlen > sizeof(buf) - (p - buf) - 2) in scgi_process()
99 rlen += (p - buf) + 2; in scgi_process()
101 while ((ssize_t)rlen < offset) { in scgi_process()
125 if (offset < (ssize_t)rlen) in scgi_process()
127 if (buf[rlen-1] != ',') in scgi_process()
129 rlen -= (p - buf) + 2; in scgi_process()
135 p = scgi_getenv(r, rlen, "SCGI"); in scgi_process()
[all …]
H A Dfcgi-responder.c106 fcgi_getenv(const unsigned char * const r, const uint32_t rlen, const char * const name, int nlen, … in fcgi_getenv() argument
110 for (uint32_t i = 0; i < rlen; ) { in fcgi_getenv()
146 …_process_params (FILE * const stream, int req_id, int role, unsigned char * const r, uint32_t rlen) in fcgi_process_params() argument
156 if (NULL != (p = fcgi_getenv(r, rlen, "QUERY_STRING", 12, &len))) { in fcgi_process_params()
209 cdata = fcgi_getenv(r, rlen, p+4, len-4, &len); in fcgi_process_params()
211 cdata = fcgi_getenv(r, rlen, "X_LIGHTTPD_FCGI_AUTH", 20, &len); in fcgi_process_params()
/lighttpd1.4/src/
H A Dmod_authn_ldap.c371 const size_t rlen = buffer_clen(raw); in mod_authn_append_ldap_dn_escape() local
372 if (0 == rlen) return; in mod_authn_append_ldap_dn_escape()
379 for (size_t i = 0; i < rlen; ++i) { in mod_authn_append_ldap_dn_escape()
399 } while (++len < rlen); in mod_authn_append_ldap_dn_escape()
404 if ((i += len) == rlen) break; in mod_authn_append_ldap_dn_escape()
421 if (rlen > 1 && b[rlen-1] == ' ') { in mod_authn_append_ldap_dn_escape()
459 const size_t rlen = buffer_clen(raw); in mod_authn_append_ldap_filter_escape() local
460 for (size_t i = 0; i < rlen; ++i) { in mod_authn_append_ldap_filter_escape()
475 } while (++len < rlen); in mod_authn_append_ldap_filter_escape()
480 if ((i += len) == rlen) break; in mod_authn_append_ldap_filter_escape()
H A Dbuffer.c465 const size_t rlen = buffer_clen(replace); in buffer_substr_replace() local
467 if (rlen > len) { in buffer_substr_replace()
468 buffer_extend(b, rlen-len); in buffer_substr_replace()
469 memmove(b->ptr+offset+rlen, b->ptr+offset+len, blen-offset-len); in buffer_substr_replace()
472 memcpy(b->ptr+offset, replace->ptr, rlen); in buffer_substr_replace()
474 if (rlen < len) { in buffer_substr_replace()
475 memmove(b->ptr+offset+rlen, b->ptr+offset+len, blen-offset-len); in buffer_substr_replace()
476 buffer_truncate(b, blen-len+rlen); in buffer_substr_replace()
H A Dmod_authn_dbi.c400 ,{ ai->realm, ai->rlen } in mod_authn_dbi_password_cmp()
454 if (ai->rlen < sizeof(buf)) { in mod_authn_dbi_query_build()
455 memcpy(buf, ai->realm, ai->rlen); in mod_authn_dbi_query_build()
456 buf[ai->rlen] = '\0'; in mod_authn_dbi_query_build()
572 ai.rlen = buffer_clen(require->realm); in mod_authn_dbi_basic()
H A Drequest.c1021 size_t rlen = buffer_clen(target); in http_request_parse_target() local
1022 qstr = memchr(target->ptr, '#', rlen);/* discard fragment */ in http_request_parse_target()
1024 rlen = (size_t)(qstr - target->ptr); in http_request_parse_target()
1025 buffer_truncate(target, rlen); in http_request_parse_target()
1027 qstr = memchr(target->ptr, '?', rlen); in http_request_parse_target()
1032 const uint32_t rlen = buffer_clen(target); in http_request_parse_target() local
1036 buffer_copy_string_len(&r->uri.query, qstr + 1, rlen - plen - 1); in http_request_parse_target()
1039 plen = rlen; in http_request_parse_target()
H A Dmod_vhostdb_ldap.c221 const size_t rlen = buffer_clen(raw); in mod_authn_append_ldap_filter_escape() local
222 for (size_t i = 0; i < rlen; ++i) { in mod_authn_append_ldap_filter_escape()
237 } while (++len < rlen); in mod_authn_append_ldap_filter_escape()
242 if ((i += len) == rlen) break; in mod_authn_append_ldap_filter_escape()
H A Dmod_authn_file.c188 ,{ ai->realm, ai->rlen } in mod_authn_file_digest()
244 if (ai->ulen == uh_len && ai->rlen == r_len in mod_authn_file_htdigest_get_loop()
259 if (ai->ulen == u_len && ai->rlen == r_len in mod_authn_file_htdigest_get_loop()
314 ai.rlen = buffer_clen(require->realm); in mod_authn_file_htdigest_basic()
H A Dmod_auth_api.h66 size_t rlen; member
H A Dmod_auth.c1360 ai->rlen = dp->len[e_realm]; in mod_auth_digest_validate_params()
1373 if (!buffer_eq_slen(require->realm, ai->realm, ai->rlen)) { in mod_auth_digest_validate_params()