Branch: Tag:

2014-04-17

2014-04-17 17:13:55 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Nettle: Support the soon to be released Nettle 3.0.

The DSA APIs have been changed in Nettle 3.0. This adds code to
use the new API (as the compat API failed due to name conflits).

67:    # gcm is available in Nettle 2.2 and later.    # ripemd160 is available in Nettle 2.3 and later.    # sha3 and gosthash94 is available in Nettle 2.6 and later. +  # dsa-compat.h is to detect the new DSA API in Nettle 3.0 and later.    AC_CHECK_HEADERS(nettle/camellia.h nettle/md4.h nettle/sha3.h \    nettle/arctwo.h nettle/ripemd160.h nettle/gosthash94.h \ -  nettle/ctr.h nettle/gcm.h nettle/ecdsa.h) +  nettle/ctr.h nettle/gcm.h nettle/ecdsa.h \ +  nettle/dsa-compat.h)    AC_CHECK_FUNCS(nettle_md4_init)       AC_MSG_CHECKING([for idea.c])
83:    IDEA_OBJ=""    fi    -  # These might have been purged from the Nettle lib to avoid GPL +  # 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)    -  # This wasn't present in old Nettles. +  # These weren't present in old Nettles.    AC_CHECK_FUNCS(nettle_salsa20_crypt nettle_sha224_init)       AC_MSG_CHECKING([for struct yarrow256_ctx.seed_file])