mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 21:19:01 +00:00
Report appropriate zlib/libssh2 versions. Closes #957
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
# Nmap Changelog ($Id$); -*-text-*-
|
# Nmap Changelog ($Id$); -*-text-*-
|
||||||
|
|
||||||
|
o [GH#957] Fix reporting of zlib and libssh2 versions in "nmap --version". We
|
||||||
|
were always reporting the version number of the included source, even when a
|
||||||
|
different version was linked. [Pavel Zhukov]
|
||||||
|
|
||||||
o Add a new helper function for nmap-service-probes match lines: $I(1,">") will
|
o Add a new helper function for nmap-service-probes match lines: $I(1,">") will
|
||||||
unpack an unsigned big-endian integer value up to 8 bytes wide from capture
|
unpack an unsigned big-endian integer value up to 8 bytes wide from capture
|
||||||
1. The second option can be "<" for little-endian. [Daniel Miller]
|
1. The second option can be "<" for little-endian. [Daniel Miller]
|
||||||
|
|||||||
12
nmap.cc
12
nmap.cc
@@ -182,11 +182,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_LIBSSH2
|
#if HAVE_LIBSSH2
|
||||||
#include "libssh2/libssh2v.h"
|
#include <libssh2.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_LIBZ
|
#if HAVE_LIBZ
|
||||||
#include "libz/libzv.h"
|
#include <zlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* To get the version number only. */
|
/* To get the version number only. */
|
||||||
@@ -2720,9 +2720,9 @@ static void display_nmap_version() {
|
|||||||
|
|
||||||
#if HAVE_LIBSSH2
|
#if HAVE_LIBSSH2
|
||||||
#ifdef LIBSSH2_INCLUDED
|
#ifdef LIBSSH2_INCLUDED
|
||||||
with.push_back(std::string("nmap-libssh2-") + get_word_or_quote(LIBSSH2_VERSION_TEXT, 1));
|
with.push_back(std::string("nmap-libssh2-") + get_word_or_quote(LIBSSH2_VERSION, 0));
|
||||||
#else
|
#else
|
||||||
with.push_back(std::string("libssh2-") + get_word_or_quote(LIBSSH2_VERSION_TEXT, 1));
|
with.push_back(std::string("libssh2-") + get_word_or_quote(LIBSSH2_VERSION, 0));
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
without.push_back("libssh2");
|
without.push_back("libssh2");
|
||||||
@@ -2730,9 +2730,9 @@ static void display_nmap_version() {
|
|||||||
|
|
||||||
#if HAVE_LIBZ
|
#if HAVE_LIBZ
|
||||||
#ifdef ZLIB_INCLUDED
|
#ifdef ZLIB_INCLUDED
|
||||||
with.push_back(std::string("nmap-libz-") + get_word_or_quote(LIBZ_VERSION_TEXT, 1));
|
with.push_back(std::string("nmap-libz-") + get_word_or_quote(ZLIB_VERSION, 0));
|
||||||
#else
|
#else
|
||||||
with.push_back(std::string("libz-") + get_word_or_quote(LIBZ_VERSION_TEXT, 1));
|
with.push_back(std::string("libz-") + get_word_or_quote(ZLIB_VERSION, 0));
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
without.push_back("libz");
|
without.push_back("libz");
|
||||||
|
|||||||
Reference in New Issue
Block a user