From: Joe Orton Date: Thu, 27 May 2004 09:20:00 +0000 (+0000) Subject: * modules/ssl/ssl_scache.c (ssl_scache_expire): Remove unused function. X-Git-Tag: pre_ajp_proxy~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b67b9a06708ef9aa594fda33fc40f0073853d777;p=apache * modules/ssl/ssl_scache.c (ssl_scache_expire): Remove unused function. * modules/ssl/ssl_scache_dc.c (ssl_scache_dc_expire): Likewise. * modules/ssl/ssl_scache_shmcb.c (ssl_scache_shmcb_expire): Likewise. * modules/ssl/ssl_scache_dbm.c (ssl_scache_dbm_expire): Make static. * modules/ssl/ssl_private.h: Remove prototypes. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103793 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_private.h b/modules/ssl/ssl_private.h index 80a4c7efa0..f8e9d1d8e5 100644 --- a/modules/ssl/ssl_private.h +++ b/modules/ssl/ssl_private.h @@ -546,7 +546,6 @@ void ssl_scache_kill(server_rec *); BOOL ssl_scache_store(server_rec *, UCHAR *, int, time_t, SSL_SESSION *); SSL_SESSION *ssl_scache_retrieve(server_rec *, UCHAR *, int); void ssl_scache_remove(server_rec *, UCHAR *, int); -void ssl_scache_expire(server_rec *); char *ssl_scache_id2sz(UCHAR *, int); void ssl_scache_dbm_init(server_rec *, apr_pool_t *); @@ -554,7 +553,6 @@ void ssl_scache_dbm_kill(server_rec *); BOOL ssl_scache_dbm_store(server_rec *, UCHAR *, int, time_t, SSL_SESSION *); SSL_SESSION *ssl_scache_dbm_retrieve(server_rec *, UCHAR *, int); void ssl_scache_dbm_remove(server_rec *, UCHAR *, int); -void ssl_scache_dbm_expire(server_rec *); void ssl_scache_dbm_status(request_rec *r, int flags, apr_pool_t *pool); void ssl_scache_shmcb_init(server_rec *, apr_pool_t *); @@ -562,7 +560,6 @@ void ssl_scache_shmcb_kill(server_rec *); BOOL ssl_scache_shmcb_store(server_rec *, UCHAR *, int, time_t, SSL_SESSION *); SSL_SESSION *ssl_scache_shmcb_retrieve(server_rec *, UCHAR *, int); void ssl_scache_shmcb_remove(server_rec *, UCHAR *, int); -void ssl_scache_shmcb_expire(server_rec *); void ssl_scache_shmcb_status(request_rec *r, int flags, apr_pool_t *pool); void ssl_scache_dc_init(server_rec *, apr_pool_t *); @@ -570,7 +567,6 @@ void ssl_scache_dc_kill(server_rec *); BOOL ssl_scache_dc_store(server_rec *, UCHAR *, int, time_t, SSL_SESSION *); SSL_SESSION *ssl_scache_dc_retrieve(server_rec *, UCHAR *, int); void ssl_scache_dc_remove(server_rec *, UCHAR *, int); -void ssl_scache_dc_expire(server_rec *); void ssl_scache_dc_status(request_rec *r, int flags, apr_pool_t *pool); /* Proxy Support */ diff --git a/modules/ssl/ssl_scache.c b/modules/ssl/ssl_scache.c index fee449888d..2d787a268e 100644 --- a/modules/ssl/ssl_scache.c +++ b/modules/ssl/ssl_scache.c @@ -134,17 +134,6 @@ void ssl_scache_remove(server_rec *s, UCHAR *id, int idlen) return; } -void ssl_scache_expire(server_rec *s) -{ - SSLModConfigRec *mc = myModConfig(s); - - if (mc->nSessionCacheMode == SSL_SCMODE_DBM) - ssl_scache_dbm_expire(s); - else if (mc->nSessionCacheMode == SSL_SCMODE_SHMCB) - ssl_scache_shmcb_expire(s); - return; -} - /* _________________________________________________________________ ** ** SSL Extension to mod_status diff --git a/modules/ssl/ssl_scache_dbm.c b/modules/ssl/ssl_scache_dbm.c index 0c08318592..4dbfacbf87 100644 --- a/modules/ssl/ssl_scache_dbm.c +++ b/modules/ssl/ssl_scache_dbm.c @@ -25,6 +25,8 @@ #include "ssl_private.h" +static void ssl_scache_dbm_expire(server_rec *s); + void ssl_scache_dbm_init(server_rec *s, apr_pool_t *p) { SSLModConfigRec *mc = myModConfig(s); @@ -288,7 +290,7 @@ void ssl_scache_dbm_remove(server_rec *s, UCHAR *id, int idlen) return; } -void ssl_scache_dbm_expire(server_rec *s) +static void ssl_scache_dbm_expire(server_rec *s) { SSLModConfigRec *mc = myModConfig(s); SSLSrvConfigRec *sc = mySrvConfig(s); diff --git a/modules/ssl/ssl_scache_dc.c b/modules/ssl/ssl_scache_dc.c index 281bf8a511..d8aa1eb2a9 100644 --- a/modules/ssl/ssl_scache_dc.c +++ b/modules/ssl/ssl_scache_dc.c @@ -162,12 +162,6 @@ void ssl_scache_dc_remove(server_rec *s, UCHAR *id, int idlen) } } -void ssl_scache_dc_expire(server_rec *s) -{ - /* NOP */ - return; -} - void ssl_scache_dc_status(request_rec *r, int flags, apr_pool_t *pool) { SSLModConfigRec *mc = myModConfig(r->server); diff --git a/modules/ssl/ssl_scache_shmcb.c b/modules/ssl/ssl_scache_shmcb.c index fe8df27cf6..ee02a407ec 100644 --- a/modules/ssl/ssl_scache_shmcb.c +++ b/modules/ssl/ssl_scache_shmcb.c @@ -443,12 +443,6 @@ void ssl_scache_shmcb_remove(server_rec *s, UCHAR *id, int idlen) ssl_mutex_off(s); } -void ssl_scache_shmcb_expire(server_rec *s) -{ - /* NOP */ - return; -} - void ssl_scache_shmcb_status(request_rec *r, int flags, apr_pool_t *p) { SSLModConfigRec *mc = myModConfig(r->server);