2017-08-04 08:35:30 +00:00
|
|
|
commit fd0db097498d5ff29f647508a80915d4d0e8d84a
|
|
|
|
Author: dmiller <dmiller@e0a8ed71-7df4-0310-8962-fdc924857419>
|
|
|
|
Date: Thu Aug 3 15:16:49 2017 +0000
|
2017-08-03 11:29:02 +00:00
|
|
|
|
2017-08-04 08:35:30 +00:00
|
|
|
Report appropriate zlib/libssh2 versions. Closes #957
|
2017-08-03 11:29:02 +00:00
|
|
|
|
|
|
|
diff --git a/nmap.cc b/nmap.cc
|
2017-08-04 08:35:30 +00:00
|
|
|
index 512cb4a6e..5345d7311 100644
|
2017-08-03 11:29:02 +00:00
|
|
|
--- a/nmap.cc
|
|
|
|
+++ b/nmap.cc
|
2017-08-04 08:35:30 +00:00
|
|
|
@@ -182,11 +182,11 @@
|
2017-08-03 11:29:02 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAVE_LIBSSH2
|
2017-08-04 08:35:30 +00:00
|
|
|
-#include "libssh2/libssh2v.h"
|
|
|
|
+#include <libssh2.h>
|
2017-08-03 11:29:02 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAVE_LIBZ
|
2017-08-04 08:35:30 +00:00
|
|
|
-#include "libz/libzv.h"
|
|
|
|
+#include <zlib.h>
|
2017-08-03 11:29:02 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* To get the version number only. */
|
2017-08-04 08:35:30 +00:00
|
|
|
@@ -2720,9 +2720,9 @@ static void display_nmap_version() {
|
|
|
|
|
|
|
|
#if HAVE_LIBSSH2
|
2017-08-03 11:29:02 +00:00
|
|
|
#ifdef LIBSSH2_INCLUDED
|
2017-08-04 08:35:30 +00:00
|
|
|
- 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));
|
2017-08-03 11:29:02 +00:00
|
|
|
#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
|
|
|
|
#else
|
|
|
|
without.push_back("libssh2");
|
2017-08-04 08:35:30 +00:00
|
|
|
@@ -2730,9 +2730,9 @@ static void display_nmap_version() {
|
|
|
|
|
|
|
|
#if HAVE_LIBZ
|
2017-08-03 11:29:02 +00:00
|
|
|
#ifdef ZLIB_INCLUDED
|
2017-08-04 08:35:30 +00:00
|
|
|
- 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));
|
2017-08-03 11:29:02 +00:00
|
|
|
#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
|
|
|
|
#else
|
|
|
|
without.push_back("libz");
|