Mercurial > hg > nginx-quic
comparison src/event/ngx_event_openssl.h @ 541:b09ee85d0ac8 release-0.1.45
nginx-0.1.45-RELEASE import
*) 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 <igor@sysoev.ru> |
---|---|
date | Thu, 08 Sep 2005 14:36:09 +0000 |
parents | 371c1cee100d |
children | 511a89da35ad |
comparison
equal
deleted
inserted
replaced
540:983c48ab79bb | 541:b09ee85d0ac8 |
---|---|
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, |