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:
Willy Tarreau 2013-04-26 18:16:13 +02:00
parent 41fdb3cb70
commit 0cff0dbfc0

View File

@ -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)"