Home
last modified time | relevance | path

Searched refs:authority (Results 1 – 25 of 35) sorted by relevance

12

/lighttpd1.4/src/t/
H A Dtest_mod_evhost.c15 …d_evhost_build_doc_root_path_loop(struct ttt *tt, size_t nelts, buffer *authority, buffer *b, arra… 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()
27 buffer *authority = buffer_init(); in test_mod_evhost_build_doc_root_path() local
54 buffer_copy_string_len(authority, CONST_STR_LEN("host.example.org")); 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()
57 buffer_copy_string_len(authority, CONST_STR_LEN("example")); 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()
60 buffer_copy_string_len(authority, CONST_STR_LEN("[::1]:80")); 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()
63 buffer_free(authority); in test_mod_evhost_build_doc_root_path()
H A Dtest_keyvalue.c51 buffer *authority = buffer_init(); in test_keyvalue_pcre_keyvalue_buffer_process() local
57 burl.authority = authority; in test_keyvalue_pcre_keyvalue_buffer_process()
62 buffer_copy_string_len(authority, CONST_STR_LEN("www.example.com")); in test_keyvalue_pcre_keyvalue_buffer_process()
66 cache.comp_value = authority; in test_keyvalue_pcre_keyvalue_buffer_process()
121 buffer_free(authority); in test_keyvalue_pcre_keyvalue_buffer_process()
H A Dtest_request.c621 free(r.uri.authority.ptr); in test_request()
/lighttpd1.4/src/
H A Dmod_evhost.c216 char *ptr = authority->ptr + buffer_clen(authority); in mod_evhost_parse_host()
226 do { --ptr; } while (ptr > authority->ptr && ptr[-1] != ']'); in mod_evhost_parse_host()
230 ptr = authority->ptr; in mod_evhost_parse_host()
236 for(; ptr > authority->ptr; --ptr) { in mod_evhost_parse_host()
252 if (colon != authority->ptr) { in mod_evhost_parse_host()
253 for(ptr = colon - 1, i = 1; ptr > authority->ptr; --ptr) { in mod_evhost_parse_host()
278 mod_evhost_parse_host(b, parsed_host, authority); in mod_evhost_build_doc_root_path()
290 char *colon = strchr(authority->ptr, ':'); in mod_evhost_build_doc_root_path()
293 buffer_append_string_buffer(b, authority); /* adds fqdn */ in mod_evhost_build_doc_root_path()
296 buffer_append_string_len(b, authority->ptr, colon - authority->ptr); /* adds fqdn */ in mod_evhost_build_doc_root_path()
[all …]
H A Dmod_vhostdb.c100 const int ndx = splaytree_djbhash(BUF_PTR_LEN(&r->uri.authority)); in mod_vhostdb_cache_query()
107 && buffer_is_equal_string(&r->uri.authority, ve->server_name, ve->slen) in mod_vhostdb_cache_query()
115 const int ndx = splaytree_djbhash(BUF_PTR_LEN(&r->uri.authority)); in mod_vhostdb_cache_insert()
274 if (buffer_is_blank(&r->uri.authority)) return HANDLER_GO_ON; in REQUEST_FUNC()
279 && buffer_is_equal_string(&r->uri.authority, ve->server_name, ve->slen)) in REQUEST_FUNC()
309 ve = vhostdb_cache_entry_init(&r->uri.authority, b); in REQUEST_FUNC()
H A Dmod_redirect.c176 burl.authority = &r->uri.authority; in URIHANDLER_FUNC()
180 if (buffer_is_blank(burl.authority)) in URIHANDLER_FUNC()
181 burl.authority = r->server_name; in URIHANDLER_FUNC()
H A Dreqpool.c59 r->server_name = &r->uri.authority; in request_init_data()
189 r->server_name = &r->uri.authority; in request_reset_ex()
190 buffer_clear(&r->uri.authority); in request_reset_ex()
218 free(r->uri.authority.ptr); in request_free_data()
H A Dmod_rewrite.c298 burl.authority = &r->uri.authority; in process_rewrite_rules()
302 if (buffer_is_blank(burl.authority)) in process_rewrite_rules()
303 burl.authority = r->server_name; in process_rewrite_rules()
H A Dburl.h9 const buffer *authority; member
H A Dmod_vhostdb_pgsql.c132 buffer_clen(&r->uri.authority) * 2); in mod_vhostdb_pgsql_query()
135 BUF_PTR_LEN(&r->uri.authority), &err); in mod_vhostdb_pgsql_query()
H A Dmod_vhostdb_mysql.c152 buffer_clen(&r->uri.authority) * 2); in mod_vhostdb_mysql_query()
155 BUF_PTR_LEN(&r->uri.authority)); in mod_vhostdb_mysql_query()
H A Dresponse.c364 : &r->uri.authority; in http_response_config()
427 "URI-authority : %s", r->uri.authority.ptr); in http_response_prepare()
584 buffer_copy_string_len_lc(&r->uri.authority, BUF_PTR_LEN(r->http_host)); in http_response_comeback()
586 buffer_copy_string_len(&r->uri.authority, CONST_STR_LEN("")); in http_response_comeback()
H A Dmod_openssl.c487 hctx->r->uri.authority.ptr, ERR_error_string(ERR_get_error(), NULL)); in ssl_tlsext_status_cb()
1075 hctx->r->uri.authority.ptr); in mod_openssl_cert_cb()
1084 hctx->r->uri.authority.ptr, ERR_error_string(ERR_get_error(), NULL)); in mod_openssl_cert_cb()
1109 hctx->r->uri.authority.ptr, in mod_openssl_cert_cb()
1126 hctx->r->uri.authority.ptr, ERR_error_string(ERR_get_error(), NULL)); in mod_openssl_cert_cb()
1148 "for TLS server name %s", hctx->r->uri.authority.ptr); in mod_openssl_cert_cb()
1189 buffer_copy_string_len_lc(&r->uri.authority, servername, len); in mod_openssl_SNI()
1193 if (0 != http_request_host_policy(&r->uri.authority, in mod_openssl_SNI()
1764 const buffer * const name = &hctx->r->uri.authority; in mod_openssl_acme_tls_1()
1858 if (buffer_is_blank(&hctx->r->uri.authority)) { in mod_openssl_alpn_h2_policy()
[all …]
H A Dmod_wolfssl.c475 hctx->r->uri.authority.ptr, ERR_error_string(ERR_get_error(), NULL)); in ssl_tlsext_status_cb()
1249 hctx->r->uri.authority.ptr); in mod_openssl_cert_cb()
1260 hctx->r->uri.authority.ptr, ERR_error_string(ERR_get_error(), NULL)); in mod_openssl_cert_cb()
1270 hctx->r->uri.authority.ptr, ERR_error_string(ERR_get_error(), NULL)); in mod_openssl_cert_cb()
1278 "for TLS server name %s", hctx->r->uri.authority.ptr); in mod_openssl_cert_cb()
1316 buffer_copy_string_len_lc(&r->uri.authority, servername, len); in mod_openssl_SNI()
1320 if (0 != http_request_host_policy(&r->uri.authority, in mod_openssl_SNI()
1708 const buffer * const name = &hctx->r->uri.authority; in mod_openssl_acme_tls_1()
1811 if (buffer_is_blank(&hctx->r->uri.authority)) { in mod_openssl_alpn_h2_policy()
3006 buffer_blank(&r->uri.authority); in CONNECTION_FUNC()
H A Dmod_status.c208 buffer_append_string_encoded(b, BUF_PTR_LEN(&r->uri.authority), ENCODING_HTML); in mod_status_html_rtable_r()
392 buffer_append_string_encoded(b, BUF_PTR_LEN(&r->uri.authority), ENCODING_HTML); in mod_status_handle_server_status_html()
393 if (!buffer_is_blank(r->server_name) && r->server_name != &r->uri.authority) { in mod_status_handle_server_status_html()
H A Drequest.h84 buffer authority; member
H A Dkeyvalue.c286 if (burl->authority) in pcre_keyvalue_buffer_subst_ext()
287 burl_append(b, BUF_PTR_LEN(burl->authority), flags); in pcre_keyvalue_buffer_subst_ext()
H A Dmod_simple_vhost.c185 const buffer *host = &r->uri.authority; in mod_simple_vhost_docroot()
H A Dmod_nss.c1228 const buffer * const name = &hctx->r->uri.authority; in mod_nss_acme_tls_1()
1312 if (buffer_is_blank(&hctx->r->uri.authority)) { in mod_nss_alpn_h2_policy()
1423 buffer_copy_string_len_lc(&r->uri.authority,(const char *)sn->data,sn->len); in mod_nss_SNI()
1427 if (0 != http_request_host_policy(&r->uri.authority, in mod_nss_SNI()
1451 " server name %s", hctx->r->uri.authority.ptr); in mod_nss_SNI()
1473 r->uri.authority.ptr); in mod_nss_SNI()
1490 hctx->r->uri.authority.ptr); /*(might not be set yet if no SNI)*/ in mod_nss_SNI()
2309 buffer_blank(&r->uri.authority); in CONNECTION_FUNC()
2359 hctx->r->uri.authority.ptr); /*(might not be set yet if no SNI)*/ in CONNECTION_FUNC()
H A Dmod_gnutls.c796 hctx->r->uri.authority.ptr); /*(might not be set yet if no SNI)*/ in mod_gnutls_verify_set_tlist()
1273 const buffer * const name = &hctx->r->uri.authority; in mod_gnutls_acme_tls_1()
1367 hctx->r->uri.authority.ptr); in mod_gnutls_acme_tls_1()
1383 if (buffer_is_blank(&hctx->r->uri.authority)) { in mod_gnutls_alpn_h2_policy()
1481 buffer_copy_string_len_lc(&r->uri.authority, (const char *)servername, len); in mod_gnutls_SNI()
1485 if (0 != http_request_host_policy(&r->uri.authority, in mod_gnutls_SNI()
1636 hctx->r->uri.authority.ptr); in mod_gnutls_client_hello_hook()
2606 buffer_blank(&r->uri.authority); in CONNECTION_FUNC()
H A Dmod_vhostdb_dbi.c189 r->uri.authority.ptr,&esc); in mod_vhostdb_dbi_query()
H A Dmod_mbedtls.c737 buffer_copy_string_len_lc(&r->uri.authority, (const char *)servername, len); in mod_mbedtls_SNI()
741 if (0 != http_request_host_policy(&r->uri.authority, in mod_mbedtls_SNI()
783 r->uri.authority.ptr); in mod_mbedtls_SNI()
800 hctx->r->uri.authority.ptr); in mod_mbedtls_conf_verify()
1076 const buffer * const name = &hctx->r->uri.authority; in mod_mbedtls_acme_tls_1()
1161 if (buffer_is_blank(&hctx->r->uri.authority)) { in mod_mbedtls_alpn_h2_policy()
2333 buffer_blank(&r->uri.authority); in CONNECTION_FUNC()
H A Drequest.c1227 buffer_copy_buffer(&r->uri.authority, r->http_host); in http_request_parse()
1230 buffer_copy_string_len(&r->uri.authority, CONST_STR_LEN("")); in http_request_parse()
/lighttpd1.4/doc/outdated/
H A Dplugins.txt56 called after uri.path_raw, uri.authority and uri.scheme are set
H A Dmagnet.txt95 * lighty.env["uri.authority"] = "example.org"
156 … lighty.header["Location"] = "https://" .. lighty.env["uri.authority"] .. lighty.env["request.uri"]

12