Mercurial > hg > nginx
comparison src/core/nginx.c @ 6097:8b7f062a3fe6
Core: added OpenSSL version information to "nginx -V" output.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 16 Apr 2015 12:17:41 +0300 |
parents | 457ec43dd8d5 |
children | ac34eff7e147 |
comparison
equal
deleted
inserted
replaced
6096:e24f1bfdb641 | 6097:8b7f062a3fe6 |
---|---|
246 "file" NGX_LINEFEED NGX_LINEFEED | 246 "file" NGX_LINEFEED NGX_LINEFEED |
247 ); | 247 ); |
248 } | 248 } |
249 | 249 |
250 if (ngx_show_configure) { | 250 if (ngx_show_configure) { |
251 ngx_write_stderr( | 251 |
252 #ifdef NGX_COMPILER | 252 #ifdef NGX_COMPILER |
253 "built by " NGX_COMPILER NGX_LINEFEED | 253 ngx_write_stderr("built by " NGX_COMPILER NGX_LINEFEED); |
254 #endif | 254 #endif |
255 | |
255 #if (NGX_SSL) | 256 #if (NGX_SSL) |
257 if (SSLeay() == SSLEAY_VERSION_NUMBER) { | |
258 ngx_write_stderr("built with " OPENSSL_VERSION_TEXT | |
259 NGX_LINEFEED); | |
260 } else { | |
261 ngx_write_stderr("built with " OPENSSL_VERSION_TEXT | |
262 " (running with "); | |
263 ngx_write_stderr((char *) SSLeay_version(SSLEAY_VERSION)); | |
264 ngx_write_stderr(")" NGX_LINEFEED); | |
265 } | |
256 #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME | 266 #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME |
257 "TLS SNI support enabled" NGX_LINEFEED | 267 ngx_write_stderr("TLS SNI support enabled" NGX_LINEFEED); |
258 #else | 268 #else |
259 "TLS SNI support disabled" NGX_LINEFEED | 269 ngx_write_stderr("TLS SNI support disabled" NGX_LINEFEED); |
260 #endif | 270 #endif |
261 #endif | 271 #endif |
262 "configure arguments:" NGX_CONFIGURE NGX_LINEFEED); | 272 |
273 ngx_write_stderr("configure arguments:" NGX_CONFIGURE NGX_LINEFEED); | |
263 } | 274 } |
264 | 275 |
265 if (!ngx_test_config) { | 276 if (!ngx_test_config) { |
266 return 0; | 277 return 0; |
267 } | 278 } |