From: Jonathan McDowell Date: Sat, 7 Sep 2019 19:56:04 +0000 (+0000) Subject: Add defines for nettle_get_secp_* for Nettle pre 3.4 X-Git-Tag: onak-0.6.0~10 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=a000448ed7ca6932cf1a7936fa43e56395b16f77;p=onak.git 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. --- 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 */