Mercurial > hg > nginx
diff src/mail/ngx_mail_pop3_handler.c @ 2495:a59b26eee816
compatibility with Microsoft's
AUTH LOGIN [base64 encoded user name ]
patch by Maxim Dounin
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 09 Feb 2009 12:03:55 +0000 |
parents | 722b5aff05ae |
children | 4f9dd6d22acd |
line wrap: on
line diff
--- a/src/mail/ngx_mail_pop3_handler.c Thu Feb 05 16:01:50 2009 +0000 +++ b/src/mail/ngx_mail_pop3_handler.c Mon Feb 09 12:03:55 2009 +0000 @@ -226,7 +226,7 @@ break; case ngx_pop3_auth_login_username: - rc = ngx_mail_auth_login_username(s, c); + rc = ngx_mail_auth_login_username(s, c, 0); s->out.len = sizeof(pop3_password) - 1; s->out.data = pop3_password; @@ -474,6 +474,14 @@ return NGX_OK; + case NGX_MAIL_AUTH_LOGIN_USERNAME: + + s->out.len = sizeof(pop3_password) - 1; + s->out.data = pop3_password; + s->mail_state = ngx_pop3_auth_login_password; + + return ngx_mail_auth_login_username(s, c, 1); + case NGX_MAIL_AUTH_PLAIN: s->out.len = sizeof(pop3_next) - 1;