]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: init: indicate the SSL runtime version on -vv.
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Apr 2013 16:16:13 +0000 (18:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Apr 2013 16:16:13 +0000 (18:16 +0200)
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).

src/haproxy.c

index da7a6251425f930d5430107254930856e4ecad9b..6155ea34be859018b875c3346d97234741181a2d 100644 (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)"