Mercurial > hg > nginx
diff src/imap/ngx_imap_auth_http_module.c @ 809:da9c1521319d
AUTH PLAIN LOGIN CRAM-MD5
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 24 Oct 2006 18:38:31 +0000 |
parents | 8ee450f30c25 |
children | 1673f197bc62 |
line wrap: on
line diff
--- a/src/imap/ngx_imap_auth_http_module.c Tue Oct 24 14:18:35 2006 +0000 +++ b/src/imap/ngx_imap_auth_http_module.c Tue Oct 24 18:38:31 2006 +0000 @@ -133,7 +133,9 @@ static char *ngx_imap_auth_http_protocol[] = { "pop3", "imap" }; static ngx_str_t ngx_imap_auth_http_method[] = { - ngx_string("plain"), ngx_string("apop") + ngx_string("plain"), + ngx_string("apop"), + ngx_string("cram-md5") }; @@ -1078,7 +1080,7 @@ b->last = ngx_copy(b->last, passwd.data, passwd.len); *b->last++ = CR; *b->last++ = LF; - if (s->salt.len) { + if (s->auth_method != NGX_IMAP_AUTH_PLAIN && s->salt.len) { b->last = ngx_cpymem(b->last, "Auth-Salt: ", sizeof("Auth-Salt: ") - 1); b->last = ngx_copy(b->last, s->salt.data, s->salt.len);