| /lighttpd1.4/src/ |
| H A D | burl.c | 394 if (str[i]=='%' && li_cton(str[i+1], n1) && li_cton(str[i+2], n2)) { in burl_append_encode_nde() 401 p[++j] = str[i+1]; in burl_append_encode_nde() 402 p[++j] = str[i+2]; in burl_append_encode_nde() 407 p[j] = str[i]; in burl_append_encode_nde() 428 if (str[i]=='%' && li_cton(str[i+1], n1) && li_cton(str[i+2], n2)) { in burl_append_encode_psnde() 435 p[++j] = str[i+1]; in burl_append_encode_psnde() 436 p[++j] = str[i+2]; in burl_append_encode_psnde() 440 else if (burl_is_unreserved(str[i]) || str[i] == '/') { in burl_append_encode_psnde() 441 p[j] = str[i]; in burl_append_encode_psnde() 461 if (burl_is_unreserved(str[i])) { in burl_append_encode_all() [all …]
|
| H A D | sock_addr.c | 435 if (0 == strcmp(str, "localhost")) { in sock_addr_from_str_hints() 478 if (0 == strcmp(str, "::")) { in sock_addr_from_str_hints() 481 else if (0 == strcmp(str, "::1")) { in sock_addr_from_str_hints() 526 if (0 == strcmp(str, "0.0.0.0")) { in sock_addr_from_str_hints() 529 else if (0 == strcmp(str, "127.0.0.1")) { in sock_addr_from_str_hints() 551 struct hostent *he = gethostbyname(str); in sock_addr_from_str_hints() 582 size_t hostlen = strlen(str) + 1; in sock_addr_from_str_hints() 589 memcpy(saddr->un.sun_path, str, hostlen); in sock_addr_from_str_hints() 640 str, gai_strerror(result)); in sock_addr_from_str_numeric() 659 "succeeded, but unknown family", str); in sock_addr_from_str_numeric() [all …]
|
| H A D | algo_md.h | 19 static inline uint32_t djbhash(const char *str, const uint32_t len, uint32_t hash); 20 static inline uint32_t djbhash(const char *str, const uint32_t len, uint32_t hash) in djbhash() argument 22 const unsigned char * const s = (const unsigned char *)str; in djbhash() 34 static inline uint32_t dekhash (const char *str, const uint32_t len, uint32_t hash); 35 static inline uint32_t dekhash (const char *str, const uint32_t len, uint32_t hash) in dekhash() argument 37 const unsigned char * const s = (const unsigned char *)str; in dekhash()
|
| H A D | mod_accesslog.c | 636 char *str = vb->ptr; in accesslog_append_cookie() local 639 while (*str == ' ' || *str == '\t') ++str; in accesslog_append_cookie() 640 if (0 == strncmp(str, name->ptr, len) && str[len] == '=') { in accesslog_append_cookie() 641 char *v = str+len+1; in accesslog_append_cookie() 642 for (str = v; *str != '\0' && *str != ';'; ++str) ; in accesslog_append_cookie() 643 if (str == v) break; in accesslog_append_cookie() 644 do { --str; } while (str > v && (*str == ' ' || *str == '\t')); in accesslog_append_cookie() 649 while (*str != ';' && *str != ' ' && *str != '\t' && *str != '\0') in accesslog_append_cookie() 650 ++str; in accesslog_append_cookie() 652 while (*str == ' ' || *str == '\t') ++str; in accesslog_append_cookie() [all …]
|
| H A D | algo_splaytree.h | 20 static inline int32_t splaytree_djbhash(const char *str, const uint32_t len); 21 static inline int32_t splaytree_djbhash(const char *str, const uint32_t len) in splaytree_djbhash() argument 24 return (int32_t)(djbhash(str,len,DJBHASH_INIT) & ~(((uint32_t)1) << 31)); in splaytree_djbhash()
|
| H A D | sock_addr.h | 57 int sock_addr_inet_pton(sock_addr * restrict saddr, const char * restrict str, int family, unsigned… 66 …ock_addr * restrict saddr, socklen_t * restrict len, const char * restrict str, int family, unsign… 67 int sock_addr_from_str_numeric(sock_addr * restrict saddr, const char * restrict str, log_error_st …
|
| H A D | mod_auth.c | 358 const char *str = b->ptr; in mod_auth_require_parse() local 369 p = strchr(str, '|'); in mod_auth_require_parse() 370 len = NULL != p ? (size_t)(p - str) : strlen(str); in mod_auth_require_parse() 371 eq = memchr(str, '=', len); in mod_auth_require_parse() 376 "error value: %s error near: %s", b->ptr, str); in mod_auth_require_parse() 384 "error value: %s error near: %s", b->ptr, str); in mod_auth_require_parse() 388 switch ((int)(eq - str)) { in mod_auth_require_parse() 390 if (0 == memcmp(str, CONST_STR_LEN("user"))) { in mod_auth_require_parse() 405 if (0 == memcmp(str, CONST_STR_LEN("group"))) { in mod_auth_require_parse() 434 "error value: %s error near: %s", b->ptr, str); in mod_auth_require_parse() [all …]
|
| H A D | buffer.c | 322 const char * const str = itostr(buf, val); in buffer_append_int() local 323 buffer_append_string_len(b, str, buf+sizeof(buf) - str); in buffer_append_int() 350 char* const str = itostr(p_buf, val); in li_itostrn() local 351 size_t len = (size_t)(p_buf+sizeof(p_buf)-str); in li_itostrn() 353 memcpy(buf, str, len); in li_itostrn() 359 char* const str = utostr(p_buf, val); in li_utostrn() local 360 size_t len = (size_t)(p_buf+sizeof(p_buf)-str); in li_utostrn() 362 memcpy(buf, str, len); in li_utostrn()
|
| H A D | http_etag.c | 47 http_etag_remix (buffer * const etag, const char * const str, const uint32_t len) in http_etag_remix() argument 49 uint32_t h = dekhash(str, len, len); /*(pass len as initial hash value)*/ in http_etag_remix()
|
| H A D | mod_ssi.c | 229 buffer str; member 236 return B->type == SSI_TYPE_BOOL ? B->bo : !buffer_is_blank(&B->str); in ssi_val_tobool() 242 ? strcmp(v1->str.ptr ? v1->str.ptr : "", in ssi_eval_expr_cmp() 243 v2->str.ptr ? v2->str.ptr : "") in ssi_eval_expr_cmp() 425 buffer_clear(&v->str); in ssi_eval_expr_step() 429 switch ((next = ssi_expr_tokenizer(t, &v->str))) { in ssi_eval_expr_step() 431 do { next = ssi_expr_tokenizer(t, &v->str); } while (next == TK_VALUE); in ssi_eval_expr_step() 469 buffer_free_ptr(&v2.str); in ssi_eval_expr_loop_cmp() 515 buffer_free_ptr(&v2.str); in ssi_eval_expr_loop() 533 buffer_free_ptr(&v.str); in ssi_eval_expr()
|
| H A D | burl.h | 46 void burl_append (buffer * const b, const char * const str, const size_t len, const int flags);
|
| H A D | http-header-glue.c | 138 buffer str; /* buffer for string representation */ member 147 mtime_cache[i].str.ptr = mtime_cache_str[i]; in strftime_cache_reset() 148 mtime_cache[i].str.used = sizeof(mtime_cache_str[0]); in strftime_cache_reset() 149 mtime_cache[i].str.size = sizeof(mtime_cache_str[0]); in strftime_cache_reset() 161 return &mtime_cache[j].str; /* found cache-entry */ in strftime_cache_get() 167 http_date_time_to_str(mtime_cache[i].str.ptr, sizeof(mtime_cache_str[0]), in strftime_cache_get() 170 return &mtime_cache[i].str; in strftime_cache_get()
|
| H A D | network.c | 546 for (char *str = s->socket_perms->ptr; *str; ++str) { in network_server_init() local 548 m |= (*str - '0'); in network_server_init()
|
| H A D | lemon.c | 99 str[0] = 0; in lemon_vsprintf() 128 lemon_addtext(str, &nUsed, z, -1, iWidth); in lemon_vsprintf() 133 lemon_addtext(str, &nUsed, z, k, iWidth); in lemon_vsprintf() 135 lemon_addtext(str, &nUsed, "%", 1, 0); in lemon_vsprintf() 150 rc = lemon_vsprintf(str, format, ap); in lemon_sprintf() 3709 if( str==0 ) return; in tplt_print() 3710 while( *str ){ in tplt_print() 3711 putc(*str,out); in tplt_print() 3712 if( *str=='\n' ) (*lineno)++; in tplt_print() 3713 str++; in tplt_print() [all …]
|
| H A D | mod_gnutls.c | 2333 const char *str; in mod_gnutls_read_err() local 2346 str = gnutls_alert_get_name(alert); in mod_gnutls_read_err() 2348 "%s(): alert %s", __func__, str ? str : "(unknown)"); in mod_gnutls_read_err() 2585 mod_gnutls_debug_cb(int level, const char *str) in mod_gnutls_debug_cb() argument 2589 log_error(errh, __FILE__, __LINE__, "GnuTLS: %s", str); in mod_gnutls_debug_cb()
|
| H A D | SConscript | 10 string_types = str
|
| H A D | gw_backend.c | 807 gw_hash(const char *str, const uint32_t len, uint32_t hash) in gw_hash() argument 809 return djbhash(str, len, hash); in gw_hash()
|
| H A D | mod_mbedtls.c | 2313 const char *str) in mod_mbedtls_debug_cb() argument 2316 log_error(plugin_data_singleton->srv->errh,file,line,"MTLS: %s",str); in mod_mbedtls_debug_cb()
|
| /lighttpd1.4/tests/ |
| H A D | fcgi-responder.c | 86 fcgi_puts (const int req_id, const char * const str, size_t len, FILE * const stream) in fcgi_puts() argument 88 if (NULL == str) return -1; in fcgi_puts() 97 if (part != fwrite(str+offset, 1, part, stream)) in fcgi_puts()
|
| /lighttpd1.4/src/ls-hpack/ |
| H A D | lshpack.c | 833 const unsigned char *str, unsigned str_len) in lshpack_enc_enc_str() argument 846 rc = lshpack_enc_huff_encode(str, str + str_len, dst + 1, dst_len - 1); in lshpack_enc_enc_str() 868 str = dst + 1; in lshpack_enc_enc_str() 875 memcpy(dst + 1, str, str_len); in lshpack_enc_enc_str() 899 memmove(dst + size_len, str, str_len); in lshpack_enc_enc_str()
|
| /lighttpd1.4/ |
| H A D | SConstruct | 12 string_types = str 612 if type(env['with_wolfssl']) is str:
|
| H A D | NEWS | 286 * [core] fix config typo reading large int from str 645 * [multiple] http_header APIs to reduce str copies 841 * [core] reduce $HTTP["host"] compare str scanning 912 * [mod_magnet] expose enc/dec str funcs to lua 920 * [mod_magnet] use blank str for nil (do not panic) 1085 * [TLS] set r->uri.authority empty str upon accept() 1366 * [tests] use buffer_eq_slen() for str comparison 1757 * [multiple] more forgiving config str to boolean (fixes #3036) 2189 * [core] http_kv.[ch] method, status, version str 2424 * [core] omit default port from normalized host str [all …]
|