aboutsummaryrefslogtreecommitdiff
path: root/src/mail/ngx_mail.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-02-09 12:03:55 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-02-09 12:03:55 +0000
commit09f6cd5fa930eb22ace086ecb71571ffb5071080 (patch)
tree0547b237023d4318560184267baf5fa8f182b0ff /src/mail/ngx_mail.h
parent9f751a8324d6a241b33d76be65a1435a1f56f0d6 (diff)
downloadnginx-09f6cd5fa930eb22ace086ecb71571ffb5071080.tar.gz
nginx-09f6cd5fa930eb22ace086ecb71571ffb5071080.zip
compatibility with Microsoft's
AUTH LOGIN [base64 encoded user name ] patch by Maxim Dounin
Diffstat (limited to 'src/mail/ngx_mail.h')
-rw-r--r--src/mail/ngx_mail.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mail/ngx_mail.h b/src/mail/ngx_mail.h
index 4052efea7..f813911c6 100644
--- a/src/mail/ngx_mail.h
+++ b/src/mail/ngx_mail.h
@@ -258,11 +258,12 @@ typedef struct {
#define NGX_SMTP_STARTTLS 13
-#define NGX_MAIL_AUTH_PLAIN 0
-#define NGX_MAIL_AUTH_LOGIN 1
-#define NGX_MAIL_AUTH_APOP 2
-#define NGX_MAIL_AUTH_CRAM_MD5 3
-#define NGX_MAIL_AUTH_NONE 4
+#define NGX_MAIL_AUTH_PLAIN 0
+#define NGX_MAIL_AUTH_LOGIN 1
+#define NGX_MAIL_AUTH_LOGIN_USERNAME 2
+#define NGX_MAIL_AUTH_APOP 3
+#define NGX_MAIL_AUTH_CRAM_MD5 4
+#define NGX_MAIL_AUTH_NONE 5
#define NGX_MAIL_AUTH_PLAIN_ENABLED 0x0002
@@ -346,7 +347,7 @@ ngx_int_t ngx_mail_salt(ngx_mail_session_t *s, ngx_connection_t *c,
ngx_int_t ngx_mail_auth_plain(ngx_mail_session_t *s, ngx_connection_t *c,
ngx_uint_t n);
ngx_int_t ngx_mail_auth_login_username(ngx_mail_session_t *s,
- ngx_connection_t *c);
+ ngx_connection_t *c, ngx_uint_t n);
ngx_int_t ngx_mail_auth_login_password(ngx_mail_session_t *s,
ngx_connection_t *c);
ngx_int_t ngx_mail_auth_cram_md5_salt(ngx_mail_session_t *s,