{
SSLSrvConfigRec *sc = mySrvConfig(c->base_server);
SSL *ssl;
- unsigned char *cpVHostID;
char *cpVHostMD5;
SSLConnRec *sslconn = apr_pcalloc(c->pool, sizeof(*sslconn));
* Remember the connection information for
* later access inside callback functions
*/
- cpVHostID = (unsigned char *)ssl_util_vhostid(c->pool,c->base_server);
+
ssl_log(c->base_server, SSL_LOG_INFO, "Connection to child %d established "
- "(server %s, client %s)", c->id, cpVHostID,
+ "(server %s, client %s)", c->id, sc->szVHostID,
c->remote_ip != NULL ? c->remote_ip : "unknown");
/*
return DECLINED; /* XXX */
}
SSL_clear(ssl);
- cpVHostMD5 = ap_md5(c->pool, cpVHostID);
+ cpVHostMD5 = ap_md5(c->pool, sc->szVHostID);
if (!SSL_set_session_id_context(ssl, (unsigned char *)cpVHostMD5,
MD5_DIGESTSIZE*2)) {
ssl_log(c->base_server, SSL_LOG_ERROR|SSL_ADD_SSLERR,
SSLSrvConfigRec *add = (SSLSrvConfigRec *)addv;
SSLSrvConfigRec *new = (SSLSrvConfigRec *)apr_palloc(p, sizeof(SSLSrvConfigRec));
+ cfgMergeString(szVHostID);
cfgMergeBool(bEnabled);
cfgMergeString(szCACertificatePath);
cfgMergeString(szCACertificateFile);
/*
* Create the server host:port string because we need it a lot
*/
- cpVHostID = ssl_util_vhostid(p, s);
+ sc->szVHostID = cpVHostID = ssl_util_vhostid(p, s);
/*
* Now check for important parameters and the