1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Check for correct libssh2 version via libssh2_userauth_banner function

This commit is contained in:
dmiller
2024-04-12 15:08:23 +00:00
parent a566fc1b8d
commit b969eed923
2 changed files with 12 additions and 11 deletions

View File

@@ -694,7 +694,7 @@ if test $use_libssh2 = yes -a $use_openssl = yes; then
# If they didn't specify it, we try to find it
if test $have_libssh2 != yes -a $requested_included_libssh2 != yes; then
AC_CHECK_HEADER(libssh2.h,[
AC_CHECK_LIB(ssh2, libssh2_version,
AC_CHECK_LIB(ssh2, libssh2_userauth_banner,
[have_libssh2="yes"],,[-lm])
])
fi