comparison src/event/ngx_event_openssl.h @ 90:71c46860eb55 NGINX_0_1_45

nginx 0.1.45 *) Change: the "ssl_engine" directive was canceled in the ngx_http_ssl_module and now is introduced at global level. *) Bugfix: the responses with SSI subrequests did not transferred via SSL connection. *) Various bug fixes in the IMAP/POP3 proxy.
author Igor Sysoev <http://sysoev.ru>
date Thu, 08 Sep 2005 00:00:00 +0400
parents e916a291e9aa
children 45945fa8b8ba
comparison
equal deleted inserted replaced
89:7ed9767f1c4e 90:71c46860eb55
11 #include <ngx_config.h> 11 #include <ngx_config.h>
12 #include <ngx_core.h> 12 #include <ngx_core.h>
13 13
14 #include <openssl/ssl.h> 14 #include <openssl/ssl.h>
15 #include <openssl/err.h> 15 #include <openssl/err.h>
16
17 #if OPENSSL_VERSION_NUMBER >= 0x00907000
18 #include <openssl/engine.h>
19 #define NGX_SSL_ENGINE 1
20 #endif
21
22 #define NGX_SSL_NAME "OpenSSL"
16 23
17 24
18 typedef struct { 25 typedef struct {
19 SSL *ssl; 26 SSL *ssl;
20 ngx_int_t last; 27 ngx_int_t last;
36 typedef SSL_CTX ngx_ssl_ctx_t; 43 typedef SSL_CTX ngx_ssl_ctx_t;
37 44
38 45
39 #define NGX_SSL_BUFFER 1 46 #define NGX_SSL_BUFFER 1
40 47
41
42 #define NGX_SSL_BUFSIZE 16384 48 #define NGX_SSL_BUFSIZE 16384
43 49
44 50
45 ngx_int_t ngx_ssl_init(ngx_log_t *log); 51 ngx_int_t ngx_ssl_init(ngx_log_t *log);
46 ngx_int_t ngx_ssl_create_session(ngx_ssl_ctx_t *ctx, ngx_connection_t *c, 52 ngx_int_t ngx_ssl_create_session(ngx_ssl_ctx_t *ctx, ngx_connection_t *c,