From a000448ed7ca6932cf1a7936fa43e56395b16f77 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Sat, 7 Sep 2019 19:56:04 +0000 Subject: [PATCH] Add defines for nettle_get_secp_* for Nettle pre 3.4 Debian 9 (stretch) has Nettle 3.3, so define these fallbacks so we can build with crypto support there. --- sigcheck.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sigcheck.c b/sigcheck.c index 2f72a49..ff80604 100644 --- a/sigcheck.c +++ b/sigcheck.c @@ -48,6 +48,17 @@ #include #include #include "rsa.h" + +#ifndef nettle_get_secp_256r1 +#define nettle_get_secp_256r1() &nettle_secp_256r1 +#endif +#ifndef nettle_get_secp_384r1 +#define nettle_get_secp_384r1() &nettle_secp_384r1 +#endif +#ifndef nettle_get_secp_521r1 +#define nettle_get_secp_521r1() &nettle_secp_521r1 +#endif + #endif /* Take an MPI from a buffer and import it into a GMP mpz_t */ -- 2.39.5