Mercurial > hg > nginx
comparison src/http/modules/ngx_http_ssl_module.c @ 6478:3ef7bb882ad4
Fixed logging with variable field width.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 31 Mar 2016 02:33:53 +0300 |
parents | 2cd019520210 |
children | c256dfdd469d |
comparison
equal
deleted
inserted
replaced
6477:47daf95d0138 | 6478:3ef7bb882ad4 |
---|---|
336 #endif | 336 #endif |
337 | 337 |
338 #if (NGX_DEBUG) | 338 #if (NGX_DEBUG) |
339 for (i = 0; i < inlen; i += in[i] + 1) { | 339 for (i = 0; i < inlen; i += in[i] + 1) { |
340 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0, | 340 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0, |
341 "SSL ALPN supported by client: %*s", in[i], &in[i + 1]); | 341 "SSL ALPN supported by client: %*s", |
342 (size_t) in[i], &in[i + 1]); | |
342 } | 343 } |
343 #endif | 344 #endif |
344 | 345 |
345 #if (NGX_HTTP_V2) | 346 #if (NGX_HTTP_V2) |
346 hc = c->data; | 347 hc = c->data; |
363 { | 364 { |
364 return SSL_TLSEXT_ERR_NOACK; | 365 return SSL_TLSEXT_ERR_NOACK; |
365 } | 366 } |
366 | 367 |
367 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0, | 368 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0, |
368 "SSL ALPN selected: %*s", *outlen, *out); | 369 "SSL ALPN selected: %*s", (size_t) *outlen, *out); |
369 | 370 |
370 return SSL_TLSEXT_ERR_OK; | 371 return SSL_TLSEXT_ERR_OK; |
371 } | 372 } |
372 | 373 |
373 #endif | 374 #endif |