Check for nettle_xts_encrypt_message() function rather than just
xts_encrypt_message(). All functions in nettle are renamed to contain
`nettle_` prefix.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
# Check if nettle has XTS support
save_LIBS=$LIBS
LIBS="$LIBS $NETTLE_LIBS"
-AC_CHECK_FUNCS(xts_encrypt_message)
+AC_CHECK_FUNCS(nettle_xts_encrypt_message)
LIBS=$save_LIBS
# Check for Gosthash94 with CryptoPro S-box support
#include <config.h>
#endif
-#ifndef HAVE_XTS_ENCRYPT_MESSAGE
+#ifndef HAVE_NETTLE_XTS_ENCRYPT_MESSAGE
#include "xts.h"
#include <assert.h>
tweak, length, dst, src);
}
-#endif /* HAVE_XTS_ENCRYPT_MESSAGE */
+#endif /* HAVE_NETTLE_XTS_ENCRYPT_MESSAGE */
#ifndef GNUTLS_LIB_NETTLE_BACKPORT_XTS_H
#define GNUTLS_LIB_NETTLE_BACKPORT_XTS_H
-#ifdef HAVE_XTS_ENCRYPT_MESSAGE
+#ifdef HAVE_NETTLE_XTS_ENCRYPT_MESSAGE
#include <nettle/xts.h>
#else /* Nettle version is old, use a vendored version instead */
#endif /* NETTLE_XTS_H_INCLUDED */
-#endif /* HAVE_XTS_ENCRYPT_MESSAGE */
+#endif /* HAVE_NETTLE_XTS_ENCRYPT_MESSAGE */
#endif /* GNUTLS_LIB_NETTLE_BACKPORT_XTS_H */