comparison src/mail/ngx_mail.h @ 386:1878e9c00f22 NGINX_0_6_37

nginx 0.6.37 *) Feature: Microsoft specific "AUTH LOGIN with User Name" mode support in mail proxy server. Thanks to Maxim Dounin. *) Bugfix: nginx could not be built on platforms different from i386, amd64, sparc, and ppc; the bug had appeared in 0.6.36.
author Igor Sysoev <http://sysoev.ru>
date Mon, 18 May 2009 00:00:00 +0400
parents babd3d9efb62
children
comparison
equal deleted inserted replaced
385:842321c9fc84 386:1878e9c00f22
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);