aboutsummaryrefslogtreecommitdiff
path: root/src/mail/ngx_mail.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-07-20 18:36:04 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-07-20 18:36:04 +0000
commit810dc1652dfff326ce25c621e47dc4e8c8879703 (patch)
tree4ad52b08e957fc4a7b33dd3ad57904c5d3dca020 /src/mail/ngx_mail.h
parent90b9bfe20b262b61f74cd9b510164765cb1d649b (diff)
downloadnginx-810dc1652dfff326ce25c621e47dc4e8c8879703.tar.gz
nginx-810dc1652dfff326ce25c621e47dc4e8c8879703.zip
SMTP STARTTLS
patch by Maxim Dounin
Diffstat (limited to 'src/mail/ngx_mail.h')
-rw-r--r--src/mail/ngx_mail.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mail/ngx_mail.h b/src/mail/ngx_mail.h
index 478662a04..080e0e357 100644
--- a/src/mail/ngx_mail.h
+++ b/src/mail/ngx_mail.h
@@ -92,6 +92,8 @@ typedef struct {
ngx_str_t imap_starttls_only_capability;
ngx_str_t smtp_capability;
+ ngx_str_t smtp_starttls_capability;
+ ngx_str_t smtp_starttls_only_capability;
ngx_str_t server_name;
ngx_str_t smtp_server_name;
@@ -247,6 +249,12 @@ typedef struct {
#define NGX_SMTP_NOOP 5
#define NGX_SMTP_MAIL 6
#define NGX_SMTP_RSET 7
+#define NGX_SMTP_RCPT 8
+#define NGX_SMTP_DATA 9
+#define NGX_SMTP_VRFY 10
+#define NGX_SMTP_EXPN 11
+#define NGX_SMTP_HELP 12
+#define NGX_SMTP_STARTTLS 13
#define NGX_MAIL_AUTH_PLAIN 0
@@ -285,6 +293,8 @@ typedef struct {
#define ngx_mail_conf_get_module_main_conf(cf, module) \
((ngx_mail_conf_ctx_t *) cf->ctx)->main_conf[module.ctx_index]
+#define ngx_mail_conf_get_module_srv_conf(cf, module) \
+ ((ngx_mail_conf_ctx_t *) cf->ctx)->srv_conf[module.ctx_index]
void ngx_mail_init_connection(ngx_connection_t *c);