mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
MINOR: init: indicate the SSL runtime version on -vv.
It happens that openssl's API can differ between versions, causing some serious trouble if the version used at runtime is not the same as used for building. Now we report the two versions separately along with a warning if the version differs (except the patch version).
This commit is contained in:
parent
41fdb3cb70
commit
0cff0dbfc0
@ -259,6 +259,9 @@ void display_build_opts()
|
||||
|
||||
#ifdef USE_OPENSSL
|
||||
printf("Built with OpenSSL version : " OPENSSL_VERSION_TEXT "\n");
|
||||
printf("Running on OpenSSL version : %s%s\n",
|
||||
SSLeay_version(SSLEAY_VERSION),
|
||||
((OPENSSL_VERSION_NUMBER ^ SSLeay()) >> 8) ? " (VERSIONS DIFFER!)" : "");
|
||||
printf("OpenSSL library supports TLS extensions : "
|
||||
#if OPENSSL_VERSION_NUMBER < 0x00907000L
|
||||
"no (library version too old)"
|
||||
|
Loading…
Reference in New Issue
Block a user