From 1c3567ecc81a9f07f3c3d53912114bc5bd5daffa Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 15 Jul 2004 16:35:51 +0000 Subject: nginx-0.0.7-2004-07-15-20:35:51 import --- src/core/nginx.c | 4 ++++ src/core/ngx_connection.h | 2 +- src/core/ngx_core.h | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/nginx.c b/src/core/nginx.c index 38418a8ac..6d6103c0e 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -114,6 +114,10 @@ int main(int argc, char *const *argv) log = ngx_log_init_errlog(); ngx_pid = ngx_getpid(); +#if (NGX_OPENSSL) + ngx_ssl_init(log); +#endif + /* init_cycle->log is required for signal handlers and ngx_getopt() */ ngx_memzero(&init_cycle, sizeof(ngx_cycle_t)); diff --git a/src/core/ngx_connection.h b/src/core/ngx_connection.h index ea69790a0..08714ad45 100644 --- a/src/core/ngx_connection.h +++ b/src/core/ngx_connection.h @@ -91,7 +91,7 @@ struct ngx_connection_s { ngx_str_t addr_text; #if (NGX_OPENSSL) - SSL *ssl; + ngx_ssl_t *ssl; #endif #if (HAVE_IOCP) diff --git a/src/core/ngx_core.h b/src/core/ngx_core.h index 8f30f2f01..575717f10 100644 --- a/src/core/ngx_core.h +++ b/src/core/ngx_core.h @@ -56,8 +56,7 @@ typedef struct ngx_connection_s ngx_connection_t; #include #include #if (NGX_OPENSSL) -#include -#include +#include #endif #include -- cgit