Mercurial > hg > nginx
annotate src/mail/ngx_mail_ssl_module.h @ 5468:5c410d6ca7dd
Resolver: improved code readability.
Renamed ngx_resolver_query_t to ngx_resolver_hdr_t as it describes
the header that is common to DNS queries and answers.
Replaced the magic number 12 by the size of the header structure.
The other changes are self-explanatory.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 06 Dec 2013 14:30:27 +0400 |
parents | 1356a3b96924 |
children | d049b0ea00a3 |
rev | line source |
---|---|
539 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4412 | 4 * Copyright (C) Nginx, Inc. |
539 | 5 */ |
6 | |
7 | |
1136 | 8 #ifndef _NGX_MAIL_SSL_H_INCLUDED_ |
9 #define _NGX_MAIL_SSL_H_INCLUDED_ | |
539 | 10 |
11 | |
12 #include <ngx_config.h> | |
13 #include <ngx_core.h> | |
1136 | 14 #include <ngx_mail.h> |
539 | 15 |
16 | |
1136 | 17 #define NGX_MAIL_STARTTLS_OFF 0 |
18 #define NGX_MAIL_STARTTLS_ON 1 | |
19 #define NGX_MAIL_STARTTLS_ONLY 2 | |
583 | 20 |
21 | |
539 | 22 typedef struct { |
976 | 23 ngx_flag_t enable; |
2224 | 24 ngx_flag_t prefer_server_ciphers; |
976 | 25 |
26 ngx_ssl_t ssl; | |
547 | 27 |
2224 | 28 ngx_uint_t starttls; |
976 | 29 ngx_uint_t protocols; |
547 | 30 |
976 | 31 ssize_t builtin_session_cache; |
547 | 32 |
976 | 33 time_t session_timeout; |
573 | 34 |
976 | 35 ngx_str_t certificate; |
36 ngx_str_t certificate_key; | |
2044 | 37 ngx_str_t dhparam; |
3960 | 38 ngx_str_t ecdh_curve; |
539 | 39 |
976 | 40 ngx_str_t ciphers; |
539 | 41 |
976 | 42 ngx_shm_zone_t *shm_zone; |
2224 | 43 |
5425
1356a3b96924
SSL: added ability to set keys used for Session Tickets (RFC5077).
Piotr Sikora <piotr@cloudflare.com>
parents:
4412
diff
changeset
|
44 ngx_array_t *session_ticket_keys; |
1356a3b96924
SSL: added ability to set keys used for Session Tickets (RFC5077).
Piotr Sikora <piotr@cloudflare.com>
parents:
4412
diff
changeset
|
45 |
2224 | 46 u_char *file; |
47 ngx_uint_t line; | |
1136 | 48 } ngx_mail_ssl_conf_t; |
539 | 49 |
50 | |
1136 | 51 extern ngx_module_t ngx_mail_ssl_module; |
539 | 52 |
53 | |
1136 | 54 #endif /* _NGX_MAIL_SSL_H_INCLUDED_ */ |