aes gcm/ccm require aes, duh

pull/61/head
toddouska 2015-03-27 21:30:27 -07:00
parent c9a0c9a797
commit 1fc3aa100b
1 changed files with 8 additions and 0 deletions

View File

@ -936,6 +936,14 @@ AC_ARG_ENABLE([aes],
if test "$ENABLED_AES" = "no"
then
AM_CFLAGS="$AM_CFLAGS -DNO_AES"
if test "$ENABLED_AESGCM" = "yes"
then
AC_MSG_ERROR([AESGCM requires AES.])
fi
if test "$ENABLED_AESCCM" = "yes"
then
AC_MSG_ERROR([AESCCM requires AES.])
fi
else
# turn off AES if leanpsk on
if test "$ENABLED_LEANPSK" = "yes"