| 142 | } |
| 143 | |
| 144 | static 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 |
no outgoing calls
no test coverage detected