MCPcopy Create free account
hub / github.com/apache/httpd / ap_is_allowed_protocol

Function ap_is_allowed_protocol

server/protocol.c:2564–2578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2562}
2563
2564AP_DECLARE(int) ap_is_allowed_protocol(conn_rec *c, request_rec *r,
2565 server_rec *s, const char *protocol)
2566{
2567 core_server_config *conf;
2568
2569 if (!s) {
2570 s = (r? r->server : c->base_server);
2571 }
2572 conf = ap_get_core_module_config(s->module_config);
2573
2574 if (conf->protocols->nelts > 0) {
2575 return ap_array_str_contains(conf->protocols, protocol);
2576 }
2577 return !strcmp(AP_PROTOCOL_HTTP1, protocol);
2578}
2579
2580
2581AP_IMPLEMENT_HOOK_VOID(pre_read_request,

Callers 3

get_public_https_serverFunction · 0.85
init_acme_tls_1_domainsFunction · 0.85
h2_c1_allows_directFunction · 0.85

Calls 2

ap_array_str_containsFunction · 0.85

Tested by

no test coverage detected