comparison src/imap/ngx_imap_auth_http_module.c @ 856:0197d6aae54e

use correct auth method length
author Igor Sysoev <igor@sysoev.ru>
date Fri, 17 Nov 2006 09:30:46 +0000
parents 1673f197bc62
children 6044cea025fa
comparison
equal deleted inserted replaced
855:b006f30d6a2f 856:0197d6aae54e
1037 return NULL; 1037 return NULL;
1038 } 1038 }
1039 1039
1040 len = sizeof("GET ") - 1 + ahcf->uri.len + sizeof(" HTTP/1.0" CRLF) - 1 1040 len = sizeof("GET ") - 1 + ahcf->uri.len + sizeof(" HTTP/1.0" CRLF) - 1
1041 + sizeof("Host: ") - 1 + ahcf->host_header.len + sizeof(CRLF) - 1 1041 + sizeof("Host: ") - 1 + ahcf->host_header.len + sizeof(CRLF) - 1
1042 + sizeof("Auth-Method: plain" CRLF) - 1 1042 + sizeof("Auth-Method: ") - 1
1043 + ngx_imap_auth_http_method[s->auth_method].len
1044 + sizeof(CRLF) - 1
1043 + sizeof("Auth-User: ") - 1 + login.len + sizeof(CRLF) - 1 1045 + sizeof("Auth-User: ") - 1 + login.len + sizeof(CRLF) - 1
1044 + sizeof("Auth-Pass: ") - 1 + passwd.len + sizeof(CRLF) - 1 1046 + sizeof("Auth-Pass: ") - 1 + passwd.len + sizeof(CRLF) - 1
1045 + sizeof("Auth-Salt: ") - 1 + s->salt.len 1047 + sizeof("Auth-Salt: ") - 1 + s->salt.len
1046 + sizeof("Auth-Protocol: imap" CRLF) - 1 1048 + sizeof("Auth-Protocol: imap" CRLF) - 1
1047 + sizeof("Auth-Login-Attempt: ") - 1 + NGX_INT_T_LEN 1049 + sizeof("Auth-Login-Attempt: ") - 1 + NGX_INT_T_LEN