# These may have been purged from the Nettle lib to avoid GPL # contamination. AC_CHECK_FUNCS(nettle_blowfish_decrypt nettle_serpent_decrypt) # This is the recomended interface in Nettle 2.0. AC_CHECK_FUNCS(nettle_yarrow256_slow_reseed) # These weren't present in old Nettles. AC_CHECK_FUNCS(nettle_salsa20_crypt nettle_sha224_init)
# This is only present in very new Nettles.
AC_MSG_CHECKING([whether nettle_crypt_func is a pointer type]) AC_CACHE_VAL(pike_cv_nettle_crypt_func_is_pointer, [ pike_cv_nettle_crypt_func_is_pointer=no AC_TRY_COMPILE([ /* Note: Old Nettles had the nettle_crypt_func typedef directly * in <nettle/nettle-meta.h> while more modern have it in * <nettle/nettle-types.h>. Since <nettle/nettle-meta.h> * pulls in <nettle/nettle-types.h> it should be sufficient. */ #include <nettle/nettle-meta.h>