comparison src/mail/ngx_mail.h @ 1322:27f2299e0d80

SMTP STARTTLS patch by Maxim Dounin
author Igor Sysoev <igor@sysoev.ru>
date Fri, 20 Jul 2007 18:36:04 +0000
parents 68f30ab68bb7
children c4b2c893989d
comparison
equal deleted inserted replaced
1321:8eb4dfcb89a6 1322:27f2299e0d80
90 ngx_str_t imap_capability; 90 ngx_str_t imap_capability;
91 ngx_str_t imap_starttls_capability; 91 ngx_str_t imap_starttls_capability;
92 ngx_str_t imap_starttls_only_capability; 92 ngx_str_t imap_starttls_only_capability;
93 93
94 ngx_str_t smtp_capability; 94 ngx_str_t smtp_capability;
95 ngx_str_t smtp_starttls_capability;
96 ngx_str_t smtp_starttls_only_capability;
95 97
96 ngx_str_t server_name; 98 ngx_str_t server_name;
97 ngx_str_t smtp_server_name; 99 ngx_str_t smtp_server_name;
98 ngx_str_t smtp_greeting; 100 ngx_str_t smtp_greeting;
99 101
245 #define NGX_SMTP_AUTH 3 247 #define NGX_SMTP_AUTH 3
246 #define NGX_SMTP_QUIT 4 248 #define NGX_SMTP_QUIT 4
247 #define NGX_SMTP_NOOP 5 249 #define NGX_SMTP_NOOP 5
248 #define NGX_SMTP_MAIL 6 250 #define NGX_SMTP_MAIL 6
249 #define NGX_SMTP_RSET 7 251 #define NGX_SMTP_RSET 7
252 #define NGX_SMTP_RCPT 8
253 #define NGX_SMTP_DATA 9
254 #define NGX_SMTP_VRFY 10
255 #define NGX_SMTP_EXPN 11
256 #define NGX_SMTP_HELP 12
257 #define NGX_SMTP_STARTTLS 13
250 258
251 259
252 #define NGX_MAIL_AUTH_PLAIN 0 260 #define NGX_MAIL_AUTH_PLAIN 0
253 #define NGX_MAIL_AUTH_LOGIN 1 261 #define NGX_MAIL_AUTH_LOGIN 1
254 #define NGX_MAIL_AUTH_APOP 2 262 #define NGX_MAIL_AUTH_APOP 2
283 (s)->main_conf[module.ctx_index] 291 (s)->main_conf[module.ctx_index]
284 #define ngx_mail_get_module_srv_conf(s, module) (s)->srv_conf[module.ctx_index] 292 #define ngx_mail_get_module_srv_conf(s, module) (s)->srv_conf[module.ctx_index]
285 293
286 #define ngx_mail_conf_get_module_main_conf(cf, module) \ 294 #define ngx_mail_conf_get_module_main_conf(cf, module) \
287 ((ngx_mail_conf_ctx_t *) cf->ctx)->main_conf[module.ctx_index] 295 ((ngx_mail_conf_ctx_t *) cf->ctx)->main_conf[module.ctx_index]
296 #define ngx_mail_conf_get_module_srv_conf(cf, module) \
297 ((ngx_mail_conf_ctx_t *) cf->ctx)->srv_conf[module.ctx_index]
288 298
289 299
290 void ngx_mail_init_connection(ngx_connection_t *c); 300 void ngx_mail_init_connection(ngx_connection_t *c);
291 void ngx_mail_send(ngx_event_t *wev); 301 void ngx_mail_send(ngx_event_t *wev);
292 void ngx_pop3_auth_state(ngx_event_t *rev); 302 void ngx_pop3_auth_state(ngx_event_t *rev);