Mercurial > hg > nginx-quic
comparison src/mail/ngx_mail.h @ 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 | 057d362ee50e |
children |
comparison
equal
deleted
inserted
replaced
2861:771ca4480b4d | 2862:62c95a6b143b |
---|---|
162 unsigned quoted:1; | 162 unsigned quoted:1; |
163 unsigned backslash:1; | 163 unsigned backslash:1; |
164 unsigned no_sync_literal:1; | 164 unsigned no_sync_literal:1; |
165 unsigned starttls:1; | 165 unsigned starttls:1; |
166 unsigned esmtp:1; | 166 unsigned esmtp:1; |
167 unsigned auth_method:2; | 167 unsigned auth_method:3; |
168 unsigned auth_wait:1; | 168 unsigned auth_wait:1; |
169 | 169 |
170 ngx_str_t login; | 170 ngx_str_t login; |
171 ngx_str_t passwd; | 171 ngx_str_t passwd; |
172 | 172 |
241 #define NGX_SMTP_EXPN 11 | 241 #define NGX_SMTP_EXPN 11 |
242 #define NGX_SMTP_HELP 12 | 242 #define NGX_SMTP_HELP 12 |
243 #define NGX_SMTP_STARTTLS 13 | 243 #define NGX_SMTP_STARTTLS 13 |
244 | 244 |
245 | 245 |
246 #define NGX_MAIL_AUTH_PLAIN 0 | 246 #define NGX_MAIL_AUTH_PLAIN 0 |
247 #define NGX_MAIL_AUTH_LOGIN 1 | 247 #define NGX_MAIL_AUTH_LOGIN 1 |
248 #define NGX_MAIL_AUTH_APOP 2 | 248 #define NGX_MAIL_AUTH_LOGIN_USERNAME 2 |
249 #define NGX_MAIL_AUTH_CRAM_MD5 3 | 249 #define NGX_MAIL_AUTH_APOP 3 |
250 #define NGX_MAIL_AUTH_CRAM_MD5 4 | |
250 | 251 |
251 | 252 |
252 #define NGX_MAIL_AUTH_PLAIN_ENABLED 0x0002 | 253 #define NGX_MAIL_AUTH_PLAIN_ENABLED 0x0002 |
253 #define NGX_MAIL_AUTH_LOGIN_ENABLED 0x0004 | 254 #define NGX_MAIL_AUTH_LOGIN_ENABLED 0x0004 |
254 #define NGX_MAIL_AUTH_APOP_ENABLED 0x0008 | 255 #define NGX_MAIL_AUTH_APOP_ENABLED 0x0008 |
327 ngx_int_t ngx_mail_salt(ngx_mail_session_t *s, ngx_connection_t *c, | 328 ngx_int_t ngx_mail_salt(ngx_mail_session_t *s, ngx_connection_t *c, |
328 ngx_mail_core_srv_conf_t *cscf); | 329 ngx_mail_core_srv_conf_t *cscf); |
329 ngx_int_t ngx_mail_auth_plain(ngx_mail_session_t *s, ngx_connection_t *c, | 330 ngx_int_t ngx_mail_auth_plain(ngx_mail_session_t *s, ngx_connection_t *c, |
330 ngx_uint_t n); | 331 ngx_uint_t n); |
331 ngx_int_t ngx_mail_auth_login_username(ngx_mail_session_t *s, | 332 ngx_int_t ngx_mail_auth_login_username(ngx_mail_session_t *s, |
332 ngx_connection_t *c); | 333 ngx_connection_t *c, ngx_uint_t n); |
333 ngx_int_t ngx_mail_auth_login_password(ngx_mail_session_t *s, | 334 ngx_int_t ngx_mail_auth_login_password(ngx_mail_session_t *s, |
334 ngx_connection_t *c); | 335 ngx_connection_t *c); |
335 ngx_int_t ngx_mail_auth_cram_md5_salt(ngx_mail_session_t *s, | 336 ngx_int_t ngx_mail_auth_cram_md5_salt(ngx_mail_session_t *s, |
336 ngx_connection_t *c, char *prefix, size_t len); | 337 ngx_connection_t *c, char *prefix, size_t len); |
337 ngx_int_t ngx_mail_auth_cram_md5(ngx_mail_session_t *s, ngx_connection_t *c); | 338 ngx_int_t ngx_mail_auth_cram_md5(ngx_mail_session_t *s, ngx_connection_t *c); |