]> granicus.if.org Git - apache/commit
Session cache interface redesign, Part 5:
authorJoe Orton <jorton@apache.org>
Mon, 25 Feb 2008 21:28:09 +0000 (21:28 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 25 Feb 2008 21:28:09 +0000 (21:28 +0000)
commitb6317ebc810bc0490c2657398fb7db579a9f071f
tree6967e42b711e2a48207051cacb5f2b948980d4b3
parent785c643624c582b9f9a0b4d8c1ea1af728eb3eba
Session cache interface redesign, Part 5:

Use the ap_provider interface for session cache storage providers.

* modules/ssl/mod_ssl.c (modssl_register_scache): New function.
  (ssl_register_hooks): Call it.

* modules/ssl/ssl_private.h: Define MODSSL_SESSCACHE_PROVIDER_GROUP
  and MODSSL_SESSCACHE_PROVIDER_VERSION constants.
  Remove ssl_scmode_t type.  Change nSessionCacheMode in
  SSLModConfigRec into a long sesscache_mode, storing the OpenSSL
  SSL_SESS_CACHE_* flags directly.

* modules/ssl/ssl_engine_config.c (ssl_config_global_create): Set
  sesscache_mode to SSL_SESS_CACHE_OFF by default.
  (ssl_cmd_SSLSessionCache): Remove ifdef spaghetti; fetch configured
  session cache by provider name.  Set mc->sesscache_mode for
  configured providers.

* modules/ssl/ssl_engine_init.c (ssl_init_ctx_session_cache): Use the
  configured mode flags directly from mc->sesscache_mode.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@631000 13f79535-47bb-0310-9956-ffa450edef68
modules/ssl/mod_ssl.c
modules/ssl/ssl_engine_config.c
modules/ssl/ssl_engine_init.c
modules/ssl/ssl_private.h