mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 19:32:18 +00:00
Get runtime version of OpenSSL, not header version.
This commit is contained in:
parent
b7687223c1
commit
042ddd33b4
1 changed files with 6 additions and 1 deletions
7
nmap.cc
7
nmap.cc
|
|
@ -111,6 +111,7 @@
|
|||
|
||||
#if HAVE_OPENSSL
|
||||
#include <openssl/opensslv.h>
|
||||
#include <openssl/crypto.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_LIBSSH2
|
||||
|
|
@ -2734,7 +2735,11 @@ static void display_nmap_version() {
|
|||
#endif
|
||||
|
||||
#if HAVE_OPENSSL
|
||||
with.push_back(std::string("openssl-") + get_word_or_quote(OPENSSL_VERSION_TEXT, 1));
|
||||
#ifdef SSLEAY_VERSION
|
||||
with.push_back(std::string("openssl-") + get_word_or_quote(SSLeay_version(SSLEAY_VERSION), 1));
|
||||
#else
|
||||
with.push_back(std::string("openssl-") + get_word_or_quote(OpenSSL_version(OPENSSL_VERSION), 1));
|
||||
#endif
|
||||
#else
|
||||
without.push_back("openssl");
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue