mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-12 06:21:06 +01:00
BUILD: report openssl build settings in haproxy -vv
Since it's common enough to discover that some config options are not supported due to some openssl version or build options, we report the relevant ones in "haproxy -vv".
This commit is contained in:
parent
fc0421fde9
commit
1ee0e302a1
@ -215,6 +215,38 @@ void display_build_opts()
|
|||||||
#endif
|
#endif
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
|
#ifdef USE_OPENSSL
|
||||||
|
printf("Built with OpenSSL version : " OPENSSL_VERSION_TEXT "\n");
|
||||||
|
printf("OpenSSL library supports TLS extensions : "
|
||||||
|
#if OPENSSL_VERSION_NUMBER < 0x00907000L
|
||||||
|
"no (library version too old)"
|
||||||
|
#elif defined(OPENSSL_NO_TLSEXT)
|
||||||
|
"no (disabled via OPENSSL_NO_TLSEXT)"
|
||||||
|
#else
|
||||||
|
"yes"
|
||||||
|
#endif
|
||||||
|
"\n");
|
||||||
|
printf("OpenSSL library supports SNI : "
|
||||||
|
#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
|
||||||
|
"yes"
|
||||||
|
#else
|
||||||
|
#ifdef OPENSSL_NO_TLSEXT
|
||||||
|
"no (because of OPENSSL_NO_TLSEXT)"
|
||||||
|
#else
|
||||||
|
"no (version might be too old, 0.9.8f min needed)"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
"\n");
|
||||||
|
printf("OpenSSL library supports prefer-server-ciphers : "
|
||||||
|
#ifdef SSL_OP_CIPHER_SERVER_PREFERENCE
|
||||||
|
"yes"
|
||||||
|
#else
|
||||||
|
"no (0.9.7 or later needed)"
|
||||||
|
#endif
|
||||||
|
"\n");
|
||||||
|
#else /* USE_OPENSSL */
|
||||||
|
printf("Built without OpenSSL support (USE_OPENSSL not set)\n");
|
||||||
|
#endif
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
|
|
||||||
list_pollers(stdout);
|
list_pollers(stdout);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user