From: Evan Hunt Date: Thu, 22 Jan 2015 19:17:03 +0000 (-0800) Subject: [master] fixed library version reporting X-Git-Tag: v9.11.0a1~1078 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=9175a4ed6325e611d4c95d74f6e447a3f4b50fa0;p=thirdparty%2Fbind9.git [master] fixed library version reporting - forgot to include a CHANGES note - disabled on windows (it fails to link) --- diff --git a/CHANGES b/CHANGES index bc3ad0a55d4..f09666494ad 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +4047. [cleanup] "named -V" now reports the current running versions + of OpenSSL and the libxml2 libraries, in addition to + the versions that were in use at build time. + 4046. [bug] Accounting of "total use" in memory context statistics was not correct. [RT #38370] diff --git a/bin/named/main.c b/bin/named/main.c index f28aaa5a568..9ce8dfcf9e1 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -608,14 +608,18 @@ parse_command_line(int argc, char *argv[]) { #ifdef OPENSSL printf("compiled with OpenSSL version: %s\n", OPENSSL_VERSION_TEXT); +#ifndef WIN32 printf("linked to OpenSSL version: %s\n", SSLeay_version(SSLEAY_VERSION)); #endif +#endif #ifdef HAVE_LIBXML2 printf("compiled with libxml2 version: %s\n", LIBXML_DOTTED_VERSION); +#ifndef WIN32 printf("linked to libxml2 version: %s\n", xmlParserVersion); +#endif #endif exit(0); case 'x':