Mercurial > hg > nginx-vendor-0-6
comparison src/imap/ngx_imap_parse.c @ 132:91372f004adf NGINX_0_3_13
nginx 0.3.13
*) Feature: the IMAP/POP3 proxy supports STARTTLS and STLS.
*) Bugfix: the IMAP/POP3 proxy did not work with the select, poll, and
/dev/poll methods.
*) Bugfix: in SSI handling.
*) Bugfix: now Solaris sendfilev() is not used to transfer the client
request body to FastCGI-server via the unix domain socket.
*) Bugfix: the "auth_basic" directive did not disable the
authorization; bug appeared in 0.3.11.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 05 Dec 2005 00:00:00 +0300 |
parents | df17fbafec8f |
children | fbf2b2f66c9f |
comparison
equal
deleted
inserted
replaced
131:add6b1e86d38 | 132:91372f004adf |
---|---|
117 } else { | 117 } else { |
118 goto invalid; | 118 goto invalid; |
119 } | 119 } |
120 break; | 120 break; |
121 | 121 |
122 #if (NGX_IMAP_SSL) | |
123 case 8: | |
124 if ((c[0] == 'S'|| c[0] == 's') | |
125 && (c[1] == 'T'|| c[1] == 't') | |
126 && (c[2] == 'A'|| c[2] == 'a') | |
127 && (c[3] == 'R'|| c[3] == 'r') | |
128 && (c[4] == 'T'|| c[4] == 't') | |
129 && (c[5] == 'T'|| c[5] == 't') | |
130 && (c[6] == 'L'|| c[6] == 'l') | |
131 && (c[7] == 'S'|| c[7] == 's')) | |
132 { | |
133 s->command = NGX_IMAP_STARTTLS; | |
134 | |
135 } else { | |
136 goto invalid; | |
137 } | |
138 break; | |
139 #endif | |
140 | |
122 case 10: | 141 case 10: |
123 if ((c[0] == 'C'|| c[0] == 'c') | 142 if ((c[0] == 'C'|| c[0] == 'c') |
124 && (c[1] == 'A'|| c[1] == 'a') | 143 && (c[1] == 'A'|| c[1] == 'a') |
125 && (c[2] == 'P'|| c[2] == 'p') | 144 && (c[2] == 'P'|| c[2] == 'p') |
126 && (c[3] == 'A'|| c[3] == 'a') | 145 && (c[3] == 'A'|| c[3] == 'a') |
419 s->command = NGX_POP3_CAPA; | 438 s->command = NGX_POP3_CAPA; |
420 | 439 |
421 } else if (c0 == 'N' && c1 == 'O' && c2 == 'O' && c3 == 'P') | 440 } else if (c0 == 'N' && c1 == 'O' && c2 == 'O' && c3 == 'P') |
422 { | 441 { |
423 s->command = NGX_POP3_NOOP; | 442 s->command = NGX_POP3_NOOP; |
424 | 443 #if (NGX_IMAP_SSL) |
444 } else if (c0 == 'S' && c1 == 'T' && c2 == 'L' && c3 == 'S') | |
445 { | |
446 s->command = NGX_POP3_STLS; | |
447 #endif | |
425 } else { | 448 } else { |
426 goto invalid; | 449 goto invalid; |
427 } | 450 } |
428 | 451 |
429 } else { | 452 } else { |