Mercurial > hg > nginx
comparison src/event/ngx_event_openssl_stapling.c @ 7736:a46fcf101cfc
Core: added format specifiers to output binary data as hex.
Now "s", "V", and "v" format specifiers may be prefixed with "x" (lowercase)
or "X" (uppercase) to output corresponding data in hexadecimal format.
In collaboration with Maxim Dounin.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Wed, 28 Oct 2020 10:56:11 +0300 |
parents | d752a2c76d49 |
children | ee40e2b1d083 |
comparison
equal
deleted
inserted
replaced
7735:908f48bd3c2f | 7736:a46fcf101cfc |
---|---|
2660 } | 2660 } |
2661 | 2661 |
2662 p = ngx_cpymem(p, serial->data, serial->length); | 2662 p = ngx_cpymem(p, serial->data, serial->length); |
2663 ngx_memzero(p, 20 - serial->length); | 2663 ngx_memzero(p, 20 - serial->length); |
2664 | 2664 |
2665 #if (NGX_DEBUG) | 2665 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, ctx->log, 0, |
2666 { | 2666 "ssl ocsp key %xV", &ctx->key); |
2667 u_char buf[120]; | |
2668 | |
2669 ngx_hex_dump(buf, ctx->key.data, ctx->key.len); | |
2670 | |
2671 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, ctx->log, 0, | |
2672 "ssl ocsp key %*s", sizeof(buf), buf); | |
2673 } | |
2674 #endif | |
2675 | 2667 |
2676 return NGX_OK; | 2668 return NGX_OK; |
2677 } | 2669 } |
2678 | 2670 |
2679 | 2671 |