Mercurial > hg > nginx
comparison src/mail/ngx_mail_parse.c @ 2862:62c95a6b143b stable-0.6
r2496, r2749 merge:
compatibility with Microsoft's
AUTH LOGIN [base64 encoded user name ]
patch by Maxim Dounin
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 18 May 2009 15:58:46 +0000 |
parents | 2647950e047f |
children |
comparison
equal
deleted
inserted
replaced
2861:771ca4480b4d | 2862:62c95a6b143b |
---|---|
846 | 846 |
847 if (s->args.nelts == 1) { | 847 if (s->args.nelts == 1) { |
848 return NGX_MAIL_AUTH_LOGIN; | 848 return NGX_MAIL_AUTH_LOGIN; |
849 } | 849 } |
850 | 850 |
851 if (s->args.nelts == 2) { | |
852 return NGX_MAIL_AUTH_LOGIN_USERNAME; | |
853 } | |
854 | |
851 return NGX_MAIL_PARSE_INVALID_COMMAND; | 855 return NGX_MAIL_PARSE_INVALID_COMMAND; |
852 } | 856 } |
853 | 857 |
854 if (ngx_strncasecmp(arg[0].data, (u_char *) "PLAIN", 5) == 0) { | 858 if (ngx_strncasecmp(arg[0].data, (u_char *) "PLAIN", 5) == 0) { |
855 | 859 |