/openbsd-current/usr.sbin/httpd/ |
H A D | config.c | 183 (srv->srv_conf.flags & SRVFLAG_LOCATION) ? 185 srv->srv_conf.name, srv->srv_conf.id, 188 memcpy(&s, &srv->srv_conf, sizeof(s)); 193 if (srv->srv_conf.return_uri_len != 0) { 194 iov[c].iov_base = srv->srv_conf.return_uri; 195 iov[c++].iov_len = srv->srv_conf.return_uri_len; 199 (srv->srv_conf.flags & SRVFLAG_LOCATION) == 0) { 212 __func__, srv->srv_conf.name); 220 __func__, srv->srv_conf 258 struct server_config *srv_conf = &srv->srv_conf; local 305 struct server_config *srv_conf, *iconf; local 361 struct server_config *srv_conf = &srv->srv_conf; local 402 struct server_config *srv_conf = &srv->srv_conf; local 433 config_getserver_auth(struct httpd *env, struct server_config *srv_conf) argument 455 struct server_config *srv_conf, *parent; local 626 struct server_config srv_conf; local 704 config_gettls(struct httpd *env, struct server_config *srv_conf, struct tls_config *tls_conf, const char *label, uint8_t *data, size_t len, uint8_t **outdata, size_t *outlen) argument 752 struct server_config *srv_conf = NULL; local [all...] |
H A D | server.c | 103 if (srv->srv_conf.flags & SRVFLAG_LOCATION) 106 log_debug("%s: adding server %s", __func__, srv->srv_conf.name); 114 s->srv_conf.port == srv->srv_conf.port && 115 sockaddr_cmp((struct sockaddr *)&s->srv_conf.ss, 116 (struct sockaddr *)&srv->srv_conf.ss, 117 s->srv_conf.prefixlen) == 0) 122 if ((srv->srv_s = server_socket_listen(&srv->srv_conf.ss, 123 srv->srv_conf.port, &srv->srv_conf)) 241 struct server_config *srv_conf; local 374 server_generate_ticket_key(struct server_config *srv_conf) argument 434 struct server_config *srv_conf; local 470 serverconfig_free(struct server_config *srv_conf) argument 491 serverconfig_reset(struct server_config *srv_conf) argument 527 struct server_config *srv_conf; local 558 struct server_config *srv_conf; local 637 server_socket(struct sockaddr_storage *ss, in_port_t port, struct server_config *srv_conf, int fd, int reuseport) argument 739 server_socket_listen(struct sockaddr_storage *ss, in_port_t port, struct server_config *srv_conf) argument 760 server_socket_connect(struct sockaddr_storage *ss, in_port_t port, struct server_config *srv_conf) argument 889 struct server_config *srv_conf = clt->clt_srv_conf; local 1215 server_sendlog(struct server_config *srv_conf, int cmd, const char *emsg, ...) argument 1257 struct server_config *srv_conf = clt->clt_srv_conf; local [all...] |
H A D | parse.y | 104 static struct server_config *srv_conf = NULL; 248 if (strlcpy(s->srv_conf.name, $3, 249 sizeof(s->srv_conf.name)) >= 250 sizeof(s->srv_conf.name)) { 258 strlcpy(s->srv_conf.root, HTTPD_DOCROOT, 259 sizeof(s->srv_conf.root)); 260 strlcpy(s->srv_conf.index, HTTPD_INDEX, 261 sizeof(s->srv_conf.index)); 262 strlcpy(s->srv_conf.accesslog, HTTPD_ACCESS_LOG, 263 sizeof(s->srv_conf [all...] |
H A D | logger.c | 199 logger_open(struct server *srv, struct server_config *srv_conf, void *arg) argument 203 if (srv_conf->flags & (SRVFLAG_SYSLOG | SRVFLAG_NO_LOG)) 207 srv_conf->logaccess = srv_conf->logerror = NULL; 210 if (strcmp(log->log_name, srv_conf->accesslog) == 0) 212 if (strcmp(log->log_name, srv_conf->errorlog) == 0) 217 if ((srv_conf->logaccess = 218 logger_open_file(srv_conf->accesslog)) == NULL) 221 srv_conf->logaccess = logfile; 224 if ((srv_conf 247 struct server_config *srv_conf; local [all...] |
H A D | server_fcgi.c | 92 struct server_config *srv_conf = clt->clt_srv_conf; local 104 if ((fd = socket(srv_conf->fastcgi_ss.ss_family, 107 if ((connect(fd, (struct sockaddr *) &srv_conf->fastcgi_ss, 108 srv_conf->fastcgi_ss.ss_len)) == -1) { 174 stripped = server_root_strip(alias, srv_conf->strip); 175 if ((pathlen = asprintf(&script, "%s%s", srv_conf->root, stripped)) 186 if (scriptlen < strlen(srv_conf->root)) 187 scriptlen = strlen(srv_conf->root); 208 scriptlen += (stripped - alias) - strlen(srv_conf->root); 218 srv_conf 642 struct server_config *srv_conf = clt->clt_srv_conf; local [all...] |
H A D | server_http.c | 129 server_http_authenticate(struct server_config *srv_conf, struct client *clt) argument 134 const struct auth *auth = srv_conf->auth; 786 clt->clt_srv_conf = &srv->srv_conf; 886 struct server_config *srv_conf = clt->clt_srv_conf; local 913 if (print_host(&srv_conf->ss, hbuf, sizeof(hbuf)) == NULL) 972 if ((srv_conf->flags & SRVFLAG_ERRDOCS) == 0) 977 if ((body = read_errdoc(srv_conf->errdocroot, cstr)) == NULL && 978 (body = read_errdoc(srv_conf->errdocroot, HTTPD_ERRDOCTEMPLATE)) 1017 if (srv_conf->flags & SRVFLAG_SERVER_HSTS && 1018 srv_conf 1104 struct server_config *srv_conf = clt->clt_srv_conf; local 1269 struct server_config *srv_conf = &srv->srv_conf; local 1473 struct server_config *srv_conf = clt->clt_srv_conf, *location; local 1513 server_locationaccesstest(struct server_config *srv_conf, const char *path) argument 1537 struct server_config *srv_conf = clt->clt_srv_conf; local 1824 struct server_config *srv_conf; local [all...] |
H A D | server_file.c | 64 struct server_config *srv_conf = clt->clt_srv_conf; local 89 if (srv_conf->flags & SRVFLAG_NO_INDEX) { 120 srv_conf->index) == -1) { 125 if (server_getlocation(clt, newpath) != srv_conf) { 132 if (strlcat(path, srv_conf->index, len) >= len) { 145 if ((srv_conf->flags & SRVFLAG_AUTO_INDEX) == 0) { 160 media = media_find_config(env, srv_conf, path); 172 if (srv_conf->flags & SRVFLAG_GZIP_STATIC) { 218 struct server_config *srv_conf = clt->clt_srv_conf; local 223 if (srv_conf 274 struct server_config *srv_conf = clt->clt_srv_conf; local 349 struct server_config *srv_conf = clt->clt_srv_conf; local 488 struct server_config *srv_conf = clt->clt_srv_conf; local [all...] |
H A D | httpd.c | 293 if (srv->srv_conf.flags & SRVFLAG_LOCATION) 296 if (srv->srv_conf.flags & SRVFLAG_TLS && 297 srv->srv_conf.tls_ticket_lifetime) 304 if ((srv->srv_conf.flags & SRVFLAG_LOCATION) == 0) 469 server_generate_ticket_key(&srv->srv_conf); 473 tv.tv_sec = srv->srv_conf.tls_ticket_lifetime / 4; 483 server_generate_ticket_key(&srv->srv_conf); 485 IMSG_TLSTICKET_REKEY, -1, -1, &srv->srv_conf.tls_ticket_key, 486 sizeof(srv->srv_conf.tls_ticket_key)); 487 explicit_bzero(&srv->srv_conf 1144 media_find_config(struct httpd *env, struct server_config *srv_conf, const char *file) argument [all...] |
H A D | httpd.h | 571 struct server_config srv_conf; member in struct:server
|