Support Nettle 2.4 crypto backend (for ripemd160).
[platform/upstream/cryptsetup.git] / configure.in
index 8fa8df2..4aaeaa9 100644 (file)
@@ -124,13 +124,11 @@ AC_DEFUN([CONFIGURE_NETTLE], [
                [AC_MSG_ERROR('You need Nettle cryptographic library.')])
 
        saved_LIBS=$LIBS
-       AC_CHECK_LIB(nettle, nettle_sha512_init,,
-               [AC_MSG_ERROR('You need Nettle library version 2.1 or more recent.')])
+       AC_CHECK_LIB(nettle, nettle_ripemd160_init,,
+               [AC_MSG_ERROR('You need Nettle library version 2.4 or more recent.')])
        CRYPTO_LIBS=$LIBS
        LIBS=$saved_LIBS
 
-       AC_MSG_WARN([Nettle backend does NOT provide backward compatibility (missing ripemd160 hash).])
-
        CRYPTO_STATIC_LIBS=$CRYPTO_LIBS
 ])