*/
ssl_rand_seed(base_server, ptemp, SSL_RSCTX_STARTUP, "Init: ");
- ssl_pphrase_Handle(base_server, p);
+ /*
+ * read server private keys/public certs into memory.
+ * decrypting any encrypted keys via configured SSLPassPhraseDialogs
+ * anything that needs to live longer than ptemp needs to also survive
+ * restarts, in which case they'll live inside s->process->pool.
+ */
+ ssl_pphrase_Handle(base_server, ptemp);
ssl_tmp_keys_init(base_server);
static char *asn1_table_vhost_key(SSLModConfigRec *mc, apr_pool_t *p,
char *id, char *an)
{
- /* 'p' pool used here is cleared on restarts */
+ /* 'p' pool used here is cleared on restarts (or sooner) */
char *key = apr_psprintf(p, "%s:%s", id, an);
void *keyptr = apr_hash_get(mc->tVHostKeys, key,
APR_HASH_KEY_STRING);