[v9_10] fixed library version reporting

- forgot to include a CHANGES note
- disabled on windows (it fails to link)
This commit is contained in:
Evan Hunt 2015-01-22 11:18:37 -08:00
parent 051d488aef
commit 2826029732
2 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,9 @@
--- 9.10.2rc1 released ---
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]

View file

@ -605,14 +605,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 'F':