1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

move warning about session cache not being configured to ssl_scache_init

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94243 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doug MacEachern
2002-03-27 23:25:58 +00:00
parent 9379b72632
commit 20ae69adba
2 changed files with 12 additions and 12 deletions

View File

@@ -271,17 +271,6 @@ int ssl_init_Module(apr_pool_t *p, apr_pool_t *plog,
ssl_init_Engine(base_server, p); ssl_init_Engine(base_server, p);
#endif #endif
/*
* Warn the user that he should use the session cache.
* But we can operate without it, of course.
*/
if (mc->nSessionCacheMode == SSL_SCMODE_UNSET) {
ssl_log(base_server, SSL_LOG_WARN,
"Init: Session Cache is not configured "
"[hint: SSLSessionCache]");
mc->nSessionCacheMode = SSL_SCMODE_NONE;
}
/* /*
* initialize the mutex handling * initialize the mutex handling
*/ */

View File

@@ -73,6 +73,18 @@ void ssl_scache_init(server_rec *s, apr_pool_t *p)
{ {
SSLModConfigRec *mc = myModConfig(s); SSLModConfigRec *mc = myModConfig(s);
/*
* Warn the user that he should use the session cache.
* But we can operate without it, of course.
*/
if (mc->nSessionCacheMode == SSL_SCMODE_UNSET) {
ssl_log(s, SSL_LOG_WARN,
"Init: Session Cache is not configured "
"[hint: SSLSessionCache]");
mc->nSessionCacheMode = SSL_SCMODE_NONE;
return;
}
if (mc->nSessionCacheMode == SSL_SCMODE_DBM) if (mc->nSessionCacheMode == SSL_SCMODE_DBM)
ssl_scache_dbm_init(s, p); ssl_scache_dbm_init(s, p);
else if ((mc->nSessionCacheMode == SSL_SCMODE_SHMHT) || else if ((mc->nSessionCacheMode == SSL_SCMODE_SHMHT) ||
@@ -91,7 +103,6 @@ void ssl_scache_init(server_rec *s, apr_pool_t *p)
else if (mc->nSessionCacheMode == SSL_SCMODE_SHMCB) else if (mc->nSessionCacheMode == SSL_SCMODE_SHMCB)
ssl_scache_shmcb_init(s, p); ssl_scache_shmcb_init(s, p);
} }
return;
} }
void ssl_scache_kill(server_rec *s) void ssl_scache_kill(server_rec *s)