]> granicus.if.org Git - apache/commit
Session cache interface redesign, Part 3:
authorJoe Orton <jorton@apache.org>
Fri, 22 Feb 2008 21:09:40 +0000 (21:09 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 22 Feb 2008 21:09:40 +0000 (21:09 +0000)
commit33c310cec6c277ae2e545bfc3ecf1f801ba98696
tree5beb3705e0ea26cadb0741917a529e111d35b54a
parentdb8d709066a03ae05be1eb77d5820819dd825ef8
Session cache interface redesign, Part 3:

Move provider-private context out of SSLModConfigRec and into an
opaque context pointer.  Use real error propagation in the ->init
functions rather than ssl_die().

* modules/ssl/ssl_private.h (modssl_sesscache_provider): Take a
  context out-parameter from ->init, and return an apr_status_t.
  Add context pointer as first arg for the other function types.
  (SSLModConfigRec): Remove tSessionCacheData* fields; add
  sesscache_context field.

* modules/ssl/ssl_scache.c (ssl_scache_init): Move once-per-process
  invocation check back into here.
  (ssl_scache_*): Adjust to use context pointer.

* modules/ssl/ssl_scache_shmcb.c, modules/ssl/ssl_scache_dc.c,
  modules/ssl/ssl_scache_dbm.c: Adjust all implementations to use
  opaque context pointer.

* modules/ssl/ssl_scache_memcache.c: Move memcache context into the
  context structure rather than using global state.

* modules/ssl/ssl_engine_config.c: Remove handling of
  pSessionCacheData* fields in SSLModConfigRec.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@630323 13f79535-47bb-0310-9956-ffa450edef68
modules/ssl/ssl_engine_config.c
modules/ssl/ssl_private.h
modules/ssl/ssl_scache.c
modules/ssl/ssl_scache_dbm.c
modules/ssl/ssl_scache_dc.c
modules/ssl/ssl_scache_memcache.c
modules/ssl/ssl_scache_shmcb.c