pike.git / src / post_modules / Nettle / configure.in

version» Context lines:

pike.git/src/post_modules/Nettle/configure.in:46:    ], [    pike_cv_nettle_hogweed_keypair_args=yes    ])    ])    AC_MSG_RESULT($pike_cv_nettle_hogweed_keypair_args);    if test "x$pike_cv_nettle_hogweed_keypair_args" = "xyes"; then    AC_DEFINE(HAVE_DSA_QBITS_KEYPAIR_ARG, [], [Define if generate_dsa_keypair takes the qbits argument])    fi    fi    +  # NB: Some versions of RedHat have censored the weaker curves +  # (secp_192r1 and secp_224r1 (cf [LysLysKOM 21863021])), and +  # there are no identifying macros, so we need to probe for them. +  define(PIKE_CHECK_ECC_CURVE, [ +  AC_MSG_CHECKING(if curve $1 is available) +  AC_CACHE_VAL(pike_cv_have_curve_$1, [ +  AC_TRY_LINK([#include <nettle/ecc-curve.h>], +  [ struct ecc_curve *c = &$1; ], +  [ pike_cv_have_curve_$1=yes ], +  [ pike_cv_have_curve_$1=no ]) +  ]) +  AC_MSG_RESULT($pike_cv_have_curve_$1); +  if test "x$pike_cv_have_curve_$1" = "xyes"; then +  AC_DEFINE(translit(HAVE_CURVE_$1,[a-z],[A-Z]), 1, +  [Define if your libnettle has the curve $1.]) +  fi +  ]) +  +  PIKE_CHECK_ECC_CURVE(nettle_secp_192r1) +  PIKE_CHECK_ECC_CURVE(nettle_secp_224r1) +  PIKE_CHECK_ECC_CURVE(nettle_secp_256r1) +  PIKE_CHECK_ECC_CURVE(nettle_secp_384r1) +  PIKE_CHECK_ECC_CURVE(nettle_secp_521r1) +     AC_SUBST(IDEA_OBJ)       if test "x$ac_cv_lib_nettle_nettle_ctr_crypt" = "xyes"; then    PIKE_FEATURE_OK(Nettle)       # camellia is available in Nettle 2.1 and later.    # gcm is available in Nettle 2.2 and later.    # ripemd160 is available in Nettle 2.3 and later.    # sha3 and gosthash94 are available in Nettle 2.6 and later.    # chacha, poly1305 and eax are available in Nettle 3.0 and later.