Mercurial > hg > nginx-quic
annotate src/mail/ngx_mail_ssl_module.h @ 4434:80df7b82d3c9 stable-1.0
Merge r4336:
Microoptimization of sendfile(2) usage under FreeBSD.
FreeBSD kernel checks headers/trailers pointer against NULL, not
corresponding count. Passing NULL if there are no headers/trailers
helps to avoid unneeded work in kernel, as well as unexpected 0 bytes
GIO in traces.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sun, 05 Feb 2012 12:42:36 +0000 |
parents | f87edc142316 |
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_ */ |