From e24c7746b1e9a60178e9f87f14b19bce8cc73b6e Mon Sep 17 00:00:00 2001 From: dmiller Date: Mon, 27 Jul 2026 15:55:35 +0000 Subject: [PATCH] Get libssh2 version at runtime --- nmap.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nmap.cc b/nmap.cc index 7754c0d39..b94c71223 100644 --- a/nmap.cc +++ b/nmap.cc @@ -2833,9 +2833,9 @@ static void display_nmap_version() { #if HAVE_LIBSSH2 #ifdef LIBSSH2_INCLUDED - with.push_back(std::string("nmap-libssh2-") + get_word_or_quote(LIBSSH2_VERSION, 0)); + with.push_back(std::string("nmap-libssh2-") + libssh2_version(0)); #else - with.push_back(std::string("libssh2-") + get_word_or_quote(LIBSSH2_VERSION, 0)); + with.push_back(std::string("libssh2-") + libssh2_version(0)); #endif #else without.push_back("libssh2");