configure.ac: check for SecureZeroMemory for clear memory feature
This commit is contained in:
@@ -142,6 +142,9 @@ if test "$found_crypto" = "none" && test "$use_wincng" != "no"; then
|
|||||||
AC_CHECK_HEADERS([ntdef.h ntstatus.h], [], [], [
|
AC_CHECK_HEADERS([ntdef.h ntstatus.h], [], [], [
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
])
|
])
|
||||||
|
AC_CHECK_DECLS([SecureZeroMemory], [], [], [
|
||||||
|
#include <windows.h>
|
||||||
|
])
|
||||||
fi
|
fi
|
||||||
if test "$ac_cv_libbcrypt" = "yes"; then
|
if test "$ac_cv_libbcrypt" = "yes"; then
|
||||||
AC_DEFINE(LIBSSH2_WINCNG, 1, [Use Windows CNG])
|
AC_DEFINE(LIBSSH2_WINCNG, 1, [Use Windows CNG])
|
||||||
@@ -151,8 +154,10 @@ if test "$ac_cv_libbcrypt" = "yes"; then
|
|||||||
LIBS="$LIBS -lcrypt32"
|
LIBS="$LIBS -lcrypt32"
|
||||||
fi
|
fi
|
||||||
found_crypto="Windows Cryptography API: Next Generation"
|
found_crypto="Windows Cryptography API: Next Generation"
|
||||||
|
if test "$ac_cv_have_decl_SecureZeroMemory" = "yes"; then
|
||||||
support_clear_memory=yes
|
support_clear_memory=yes
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
AM_CONDITIONAL(WINCNG, test "$ac_cv_libbcrypt" = "yes")
|
AM_CONDITIONAL(WINCNG, test "$ac_cv_libbcrypt" = "yes")
|
||||||
|
|
||||||
# Check if crypto library was found
|
# Check if crypto library was found
|
||||||
|
Reference in New Issue
Block a user