A new fix for the case when ssl_session_cache defined, but ssl is not

enabled in any server. The previous r1033 does not help when unused zone
becomes used after reconfiguration, so it is backed out.

The initial thought was to make SSL modules independed from SSL implementation
and to keep OpenSSL code dependance as much as in separate files.
This commit is contained in:
Igor Sysoev 2011-08-04 11:12:30 +00:00
parent c42be75569
commit dfd81a23b2
5 changed files with 7 additions and 10 deletions

View file

@ -474,6 +474,8 @@ ngx_mail_ssl_session_cache(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
scf->builtin_session_cache = NGX_SSL_NO_BUILTIN_SCACHE;
}
scf->shm_zone->init = ngx_ssl_session_cache_init;
return NGX_CONF_OK;
invalid: