mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Replace AcceptMutex, LockFile, RewriteLock, SSLMutex, SSLStaplingMutex,
and WatchdogMutexPath with a single Mutex directive. Add APIs to simplify setup and user customization of APR proc and global mutexes. (See util_mutex.h.) Build-time setting DEFAULT_LOCKFILE is no longer respected; set DEFAULT_REL_RUNTIMEDIR instead. Some existing modules, such as mod_ldap and mod_auth_digest gain configurability for their mutexes. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@883540 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -54,7 +54,6 @@ static const command_rec ssl_config_cmds[] = {
|
||||
/*
|
||||
* Global (main-server) context configuration directives
|
||||
*/
|
||||
SSL_CMD_SRV(Mutex, TAKE1, AP_ALL_AVAILABLE_MUTEXES_STRING)
|
||||
SSL_CMD_SRV(PassPhraseDialog, TAKE1,
|
||||
"SSL dialog mechanism for the pass phrase query "
|
||||
"('builtin', '|/path/to/pipe_program', "
|
||||
@@ -201,7 +200,6 @@ static const command_rec ssl_config_cmds[] = {
|
||||
/*
|
||||
* OCSP Stapling options
|
||||
*/
|
||||
SSL_CMD_SRV(StaplingMutex, TAKE1, AP_ALL_AVAILABLE_MUTEXES_STRING)
|
||||
SSL_CMD_SRV(StaplingCache, TAKE1,
|
||||
"SSL Stapling Response Cache storage "
|
||||
"(`dbm:/path/to/file')")
|
||||
@@ -313,6 +311,12 @@ static int ssl_hook_pre_config(apr_pool_t *pconf,
|
||||
/* Register to handle mod_status status page generation */
|
||||
ssl_scache_status_register(pconf);
|
||||
|
||||
/* Register mutex type names so they can be configured with Mutex */
|
||||
ap_mutex_register(pconf, ssl_cache_mutex_type, NULL, APR_LOCK_DEFAULT, 0);
|
||||
#ifdef HAVE_OCSP_STAPLING
|
||||
ap_mutex_register(pconf, ssl_stapling_mutex_type, NULL, APR_LOCK_DEFAULT, 0);
|
||||
#endif
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user