]> the.earth.li Git - onak.git/blobdiff - sigcheck.c
Fix compilation with later versions of Nettle
[onak.git] / sigcheck.c
index 2f72a492af2599859efc1ae8079c3eae0a4d2a4d..9a29dfc4b5451b439b82f0c56e9e08437b458b26 100644 (file)
 #include <nettle/eddsa.h>
 #include <nettle/rsa.h>
 #include "rsa.h"
+
+#ifndef HAVE_NETTLE_GET_SECP_256R1
+#define nettle_get_secp_256r1() &nettle_secp_256r1
+#endif
+#ifndef HAVE_NETTLE_GET_SECP_384R1
+#define nettle_get_secp_384r1() &nettle_secp_384r1
+#endif
+#ifndef HAVE_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 */