Back to home page

Nginx displayed by LXR

Source navigation ]
Diff markup ]
Identifier search ]
general search ]
 
 
Version: nginx-1.15.12 ]​[ nginx-1.16.0 ]​

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       listen;
0030     ngx_uint_t       protocols;
0031 
0032     ngx_uint_t       verify;
0033     ngx_uint_t       verify_depth;
0034 
0035     ssize_t          builtin_session_cache;
0036 
0037     time_t           session_timeout;
0038 
0039     ngx_array_t     *certificates;
0040     ngx_array_t     *certificate_keys;
0041 
0042     ngx_str_t        dhparam;
0043     ngx_str_t        ecdh_curve;
0044     ngx_str_t        client_certificate;
0045     ngx_str_t        trusted_certificate;
0046     ngx_str_t        crl;
0047 
0048     ngx_str_t        ciphers;
0049 
0050     ngx_array_t     *passwords;
0051 
0052     ngx_shm_zone_t  *shm_zone;
0053 
0054     ngx_flag_t       session_tickets;
0055     ngx_array_t     *session_ticket_keys;
0056 
0057     u_char          *file;
0058     ngx_uint_t       line;
0059 } ngx_mail_ssl_conf_t;
0060 
0061 
0062 extern ngx_module_t  ngx_mail_ssl_module;
0063 
0064 
0065 #endif /* _NGX_MAIL_SSL_H_INCLUDED_ */