aboutsummaryrefslogtreecommitdiff
path: root/src/event/ngx_event_openssl.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2005-10-27 15:46:13 +0000
committerIgor Sysoev <igor@sysoev.ru>2005-10-27 15:46:13 +0000
commit697d1aea0c7b1525beed2911f9f32426280df8f4 (patch)
tree3c59875442d9a8114785a04003fcc3b7b059dc55 /src/event/ngx_event_openssl.c
parent968b2a868ba7950b7c11c81905eeb5ed87b889f2 (diff)
downloadnginx-release-0.3.7.tar.gz
nginx-release-0.3.7.zip
nginx-0.3.7-RELEASE importrelease-0.3.7
*) Feature: the "access_log" supports the "buffer=" parameter. *) Bugfix: nginx could not be built on platforms different from i386, amd64, sparc, and ppc; the bug had appeared in 0.3.2.
Diffstat (limited to 'src/event/ngx_event_openssl.c')
-rw-r--r--src/event/ngx_event_openssl.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c
index 5e8e747dc..49e260ac5 100644
--- a/src/event/ngx_event_openssl.c
+++ b/src/event/ngx_event_openssl.c
@@ -22,6 +22,7 @@ static void ngx_ssl_connection_error(ngx_connection_t *c, int sslerr,
ngx_err_t err, char *text);
static void *ngx_openssl_create_conf(ngx_cycle_t *cycle);
static char *ngx_openssl_init_conf(ngx_cycle_t *cycle, void *conf);
+static void ngx_openssl_exit(ngx_cycle_t *cycle);
#if !(NGX_SSL_ENGINE)
static char *ngx_openssl_noengine(ngx_conf_t *cf, ngx_command_t *cmd,
@@ -64,7 +65,7 @@ ngx_module_t ngx_openssl_module = {
NULL, /* init thread */
NULL, /* exit thread */
NULL, /* exit process */
- NULL, /* exit master */
+ ngx_openssl_exit, /* exit master */
NGX_MODULE_V1_PADDING
};
@@ -908,7 +909,7 @@ ngx_openssl_init_conf(ngx_cycle_t *cycle, void *conf)
{
#if (NGX_SSL_ENGINE)
ngx_openssl_conf_t *oscf = conf;
-
+
ENGINE *engine;
if (oscf->engine.len == 0) {
@@ -951,3 +952,12 @@ ngx_openssl_noengine(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
}
#endif
+
+
+static void
+ngx_openssl_exit(ngx_cycle_t *cycle)
+{
+#if (NGX_SSL_ENGINE)
+ ENGINE_cleanup();
+#endif
+}