Mercurial > hg > nginx-quic
annotate src/mail/ngx_mail_ssl_module.h @ 4041:f87edc142316 stable-1.0
Merge of r3960, r3961, r3962, r3963, r3965:
SSL related fixes:
*) MSIE export versions are rare now, so RSA 512 key is generated on demand
and is shared among all hosts instead of pregenerating for every HTTPS host
on configuraiton phase. This decreases start time for configuration with
large number of HTTPS hosts.
*) ECDHE support; patch by Adrian Kotelba
*) fix build by gcc46 with -Wunused-value option
*) fix SSL connection issues on platforms with 32-bit off_t
*) do not try to reuse and save a SSL session for a peer created on the fly
by ngx_http_upstream_create_round_robin_peer(), since the peer lives
only during request so the saved SSL session will never be used again
and just causes memory leak
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 29 Aug 2011 12:35:53 +0000 |
parents | 109849282793 |
children | d620f497c50f |
rev | line source |
---|---|
539 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
1136 | 7 #ifndef _NGX_MAIL_SSL_H_INCLUDED_ |
8 #define _NGX_MAIL_SSL_H_INCLUDED_ | |
539 | 9 |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
1136 | 13 #include <ngx_mail.h> |
539 | 14 |
15 | |
1136 | 16 #define NGX_MAIL_STARTTLS_OFF 0 |
17 #define NGX_MAIL_STARTTLS_ON 1 | |
18 #define NGX_MAIL_STARTTLS_ONLY 2 | |
583 | 19 |
20 | |
539 | 21 typedef struct { |
976 | 22 ngx_flag_t enable; |
2224 | 23 ngx_flag_t prefer_server_ciphers; |
976 | 24 |
25 ngx_ssl_t ssl; | |
547 | 26 |
2224 | 27 ngx_uint_t starttls; |
976 | 28 ngx_uint_t protocols; |
547 | 29 |
976 | 30 ssize_t builtin_session_cache; |
547 | 31 |
976 | 32 time_t session_timeout; |
573 | 33 |
976 | 34 ngx_str_t certificate; |
35 ngx_str_t certificate_key; | |
2044 | 36 ngx_str_t dhparam; |
4041
f87edc142316
Merge of r3960, r3961, r3962, r3963, r3965:
Igor Sysoev <igor@sysoev.ru>
parents:
2224
diff
changeset
|
37 ngx_str_t ecdh_curve; |
539 | 38 |
976 | 39 ngx_str_t ciphers; |
539 | 40 |
976 | 41 ngx_shm_zone_t *shm_zone; |
2224 | 42 |
43 u_char *file; | |
44 ngx_uint_t line; | |
1136 | 45 } ngx_mail_ssl_conf_t; |
539 | 46 |
47 | |
1136 | 48 extern ngx_module_t ngx_mail_ssl_module; |
539 | 49 |
50 | |
1136 | 51 #endif /* _NGX_MAIL_SSL_H_INCLUDED_ */ |