]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
nettle: use nettle_get_secpp* consistently
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 23 Sep 2019 19:05:48 +0000 (21:05 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 23 Sep 2019 19:05:51 +0000 (21:05 +0200)
We already depend on nettle 3.4.1 which provides that symbol,
ensure that we use it consistently.

Relates: #835

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
configure.ac
lib/nettle/pk.c

index 71e655771d9c8d6a4dc6fc8a8f0b6b35c55a09af..72eee10d58e155bd052a05addbd32b56ebb52ff2 100644 (file)
@@ -562,7 +562,7 @@ AC_ARG_ENABLE(non-suiteb-curves,
 
 if test "$enable_non_suiteb" = "yes";then
        dnl nettle_secp_192r1 is not really a function
-       AC_CHECK_LIB(hogweed, nettle_secp_192r1, enable_non_suiteb=yes, enable_non_suiteb=no, [$HOGWEED_LIBS $NETTLE_LIBS])
+       AC_CHECK_LIB(hogweed, nettle_get_secp_192r1, enable_non_suiteb=yes, enable_non_suiteb=no, [$HOGWEED_LIBS $NETTLE_LIBS])
 
        if test "$enable_non_suiteb" = "yes";then
                AC_DEFINE([ENABLE_NON_SUITEB_CURVES], 1, [Enable all curves])
index b2d27cf74a1b157fb81380679b07f33b3036d8f8..b65b1b246521e3f77170eb25e461cb2d25db3c12 100644 (file)
@@ -1327,16 +1327,6 @@ _wrap_nettle_pk_verify(gnutls_pk_algorithm_t algo,
        return ret;
 }
 
-#if !defined(NETTLE_VERSION_MAJOR) || (NETTLE_VERSION_MAJOR < 3 || (NETTLE_VERSION_MAJOR == 3 && NETTLE_VERSION_MINOR < 4))
-# ifdef ENABLE_NON_SUITEB_CURVES
-#  define nettle_get_secp_192r1() &nettle_secp_192r1
-#  define nettle_get_secp_224r1() &nettle_secp_224r1
-# endif
-# define nettle_get_secp_256r1() &nettle_secp_256r1
-# define nettle_get_secp_384r1() &nettle_secp_384r1
-# define nettle_get_secp_521r1() &nettle_secp_521r1
-#endif
-
 static inline const struct ecc_curve *get_supported_nist_curve(int curve)
 {
        switch (curve) {