]> the.earth.li Git - onak.git/commitdiff
Add defines for nettle_get_secp_* for Nettle pre 3.4
authorJonathan McDowell <noodles@earth.li>
Sat, 7 Sep 2019 19:56:04 +0000 (19:56 +0000)
committerJonathan McDowell <noodles@earth.li>
Sat, 7 Sep 2019 19:56:04 +0000 (19:56 +0000)
Debian 9 (stretch) has Nettle 3.3, so define these fallbacks so we
can build with crypto support there.

sigcheck.c

index 2f72a492af2599859efc1ae8079c3eae0a4d2a4d..ff806046b3d9866b657bb8afc3fd39cb6e54ee36 100644 (file)
 #include <nettle/eddsa.h>
 #include <nettle/rsa.h>
 #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 */