| 199 | } |
| 200 | |
| 201 | static void modssl_ctx_init_server(SSLSrvConfigRec *sc, |
| 202 | apr_pool_t *p) |
| 203 | { |
| 204 | modssl_ctx_t *mctx; |
| 205 | |
| 206 | mctx = sc->server = apr_palloc(p, sizeof(*sc->server)); |
| 207 | |
| 208 | modssl_ctx_init(mctx, p); |
| 209 | |
| 210 | mctx->pks = apr_pcalloc(p, sizeof(*mctx->pks)); |
| 211 | |
| 212 | mctx->pks->cert_files = apr_array_make(p, 3, sizeof(char *)); |
| 213 | mctx->pks->key_files = apr_array_make(p, 3, sizeof(char *)); |
| 214 | |
| 215 | #ifdef HAVE_TLS_SESSION_TICKETS |
| 216 | mctx->ticket_key = apr_pcalloc(p, sizeof(*mctx->ticket_key)); |
| 217 | #endif |
| 218 | } |
| 219 | |
| 220 | static SSLSrvConfigRec *ssl_config_server_new(apr_pool_t *p) |
| 221 | { |
no test coverage detected