Skip to content

Commit

Permalink
configure: make clear-memory default but only WARN if backend unsuppo…
Browse files Browse the repository at this point in the history
…rted

... instead of previous ERROR.
  • Loading branch information
bagder committed Mar 25, 2015
1 parent 5f4c249 commit b8289b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ fi
AC_ARG_ENABLE(clear-memory,
AC_HELP_STRING([--disable-clear-memory],[Disable clearing of memory before being freed]),
[CLEAR_MEMORY=$enableval])
if test "$CLEAR_MEMORY" = "yes"; then
if test "$CLEAR_MEMORY" != "no"; then
if test "$support_clear_memory" = "yes"; then
AC_DEFINE(LIBSSH2_CLEAR_MEMORY, 1, [Enable clearing of memory before being freed])
enable_clear_memory=yes
else
AC_MSG_ERROR([secure clearing/zeroing of memory is not supported by the selected crypto backend])
AC_MSG_WARN([secure clearing/zeroing of memory is not supported by the selected crypto backend])
enable_clear_memory=unsupported
fi
else
Expand Down

0 comments on commit b8289b6

Please sign in to comment.