Mercurial > hg > nginx
comparison src/stream/ngx_stream_ssl_preread_module.c @ 6696:e83540f825cd
Stream ssl_preread: removed internal macro.
The ngx_log_debug() macro is internal and should not be used.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 15 Sep 2016 15:36:02 +0300 |
parents | 060d71292b69 |
children | 8f75d9883730 |
comparison
equal
deleted
inserted
replaced
6695:060d71292b69 | 6696:e83540f825cd |
---|---|
135 last = c->buffer->last; | 135 last = c->buffer->last; |
136 | 136 |
137 while (last - p >= 5) { | 137 while (last - p >= 5) { |
138 | 138 |
139 if (p[0] != 0x16) { | 139 if (p[0] != 0x16) { |
140 ngx_log_debug(NGX_LOG_DEBUG_STREAM, ctx->log, 0, | 140 ngx_log_debug0(NGX_LOG_DEBUG_STREAM, ctx->log, 0, |
141 "ssl preread: not a handshake"); | 141 "ssl preread: not a handshake"); |
142 return NGX_DECLINED; | 142 return NGX_DECLINED; |
143 } | 143 } |
144 | 144 |
145 if (p[1] != 3 || p[2] == 0) { | 145 if (p[1] != 3 || p[2] == 0) { |
146 ngx_log_debug(NGX_LOG_DEBUG_STREAM, ctx->log, 0, | 146 ngx_log_debug0(NGX_LOG_DEBUG_STREAM, ctx->log, 0, |
147 "ssl preread: unsupported SSL version"); | 147 "ssl preread: unsupported SSL version"); |
148 return NGX_DECLINED; | 148 return NGX_DECLINED; |
149 } | 149 } |
150 | 150 |
151 len = (p[3] << 8) + p[4]; | 151 len = (p[3] << 8) + p[4]; |
152 | 152 |
228 left = size; | 228 left = size; |
229 break; | 229 break; |
230 | 230 |
231 case sw_header: | 231 case sw_header: |
232 if (p[0] != 1) { | 232 if (p[0] != 1) { |
233 ngx_log_debug(NGX_LOG_DEBUG_STREAM, ctx->log, 0, | 233 ngx_log_debug0(NGX_LOG_DEBUG_STREAM, ctx->log, 0, |
234 "ssl preread: not a client hello"); | 234 "ssl preread: not a client hello"); |
235 return NGX_DECLINED; | 235 return NGX_DECLINED; |
236 } | 236 } |
237 | 237 |
238 state = sw_head_tail; | 238 state = sw_head_tail; |
239 dst = NULL; | 239 dst = NULL; |