From: Willy Tarreau Date: Fri, 26 Apr 2013 16:16:13 +0000 (+0200) Subject: MINOR: init: indicate the SSL runtime version on -vv. X-Git-Tag: v1.5-dev19~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0cff0dbfc0813d01a0ebbd3910519bfac4d9eec2;p=thirdparty%2Fhaproxy.git 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). --- diff --git a/src/haproxy.c b/src/haproxy.c index da7a625142..6155ea34be 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -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)"