Back to home page

Nginx displayed by LXR

Source navigation ]
Diff markup ]
Identifier search ]
general search ]
 
 
Version: nginx-1.13.12 ]​[ nginx-1.12.2 ]​

0001 
0002 /*
0003  * Copyright (C) Igor Sysoev
0004  * Copyright (C) Nginx, Inc.
0005  */
0006 
0007 
0008 #ifndef _NGX_MAIL_SSL_H_INCLUDED_
0009 #define _NGX_MAIL_SSL_H_INCLUDED_
0010 
0011 
0012 #include <ngx_config.h>
0013 #include <ngx_core.h>
0014 #include <ngx_mail.h>
0015 
0016 
0017 #define NGX_MAIL_STARTTLS_OFF   0
0018 #define NGX_MAIL_STARTTLS_ON    1
0019 #define NGX_MAIL_STARTTLS_ONLY  2
0020 
0021 
0022 typedef struct {
0023     ngx_flag_t       enable;
0024     ngx_flag_t       prefer_server_ciphers;
0025 
0026     ngx_ssl_t        ssl;
0027 
0028     ngx_uint_t       starttls;
0029     ngx_uint_t       protocols;
0030 
0031     ngx_uint_t       verify;
0032     ngx_uint_t       verify_depth;
0033 
0034     ssize_t          builtin_session_cache;
0035 
0036     time_t           session_timeout;
0037 
0038     ngx_array_t     *certificates;
0039     ngx_array_t     *certificate_keys;
0040 
0041     ngx_str_t        dhparam;
0042     ngx_str_t        ecdh_curve;
0043     ngx_str_t        client_certificate;
0044     ngx_str_t        trusted_certificate;
0045     ngx_str_t        crl;
0046 
0047     ngx_str_t        ciphers;
0048 
0049     ngx_array_t     *passwords;
0050 
0051     ngx_shm_zone_t  *shm_zone;
0052 
0053     ngx_flag_t       session_tickets;
0054     ngx_array_t     *session_ticket_keys;
0055 
0056     u_char          *file;
0057     ngx_uint_t       line;
0058 } ngx_mail_ssl_conf_t;
0059 
0060 
0061 extern ngx_module_t  ngx_mail_ssl_module;
0062 
0063 
0064 #endif /* _NGX_MAIL_SSL_H_INCLUDED_ */