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

Function ssl_util_vhostid

modules/ssl/ssl_util.c:42–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40*/
41
42char *ssl_util_vhostid(apr_pool_t *p, server_rec *s)
43{
44 SSLSrvConfigRec *sc;
45 apr_port_t port;
46
47 if (s->port != 0)
48 port = s->port;
49 else {
50 sc = mySrvConfig(s);
51 port = sc->enabled == TRUE ? DEFAULT_HTTPS_PORT : DEFAULT_HTTP_PORT;
52 }
53
54 return apr_psprintf(p, "%s:%lu", s->server_hostname, (unsigned long)port);
55}
56
57/*
58 * Return TRUE iff the given servername matches the server record when

Callers 6

ssl_filter_io_shutdownFunction · 0.85
ssl_io_filter_handshakeFunction · 0.85
ssl_init_ModuleFunction · 0.85
ssl_init_server_ctxFunction · 0.85
ssl_init_CheckServersFunction · 0.85
ssl_hook_ReadReqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected