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

Function md_mod_conf_get

modules/md/mod_md_config.c:144–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144static md_mod_conf_t *md_mod_conf_get(apr_pool_t *pool, int create)
145{
146 if (mod_md_config) {
147 return mod_md_config; /* reused for lifetime of the pool */
148 }
149
150 if (create) {
151 mod_md_config = apr_pcalloc(pool, sizeof(*mod_md_config));
152 memcpy(mod_md_config, &defmc, sizeof(*mod_md_config));
153 mod_md_config->mds = apr_array_make(pool, 5, sizeof(const md_t *));
154 mod_md_config->unused_names = apr_array_make(pool, 5, sizeof(const md_t *));
155 mod_md_config->env = apr_table_make(pool, 10);
156 mod_md_config->init_errors = apr_hash_make(pool);
157
158 apr_pool_cleanup_register(pool, NULL, cleanup_mod_config, apr_pool_cleanup_null);
159 }
160
161 return mod_md_config;
162}
163
164#define CONF_S_NAME(s) (s && s->server_hostname? s->server_hostname : "default")
165

Callers 2

md_config_create_svrFunction · 0.85
config_get_intFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected