]> the.earth.li Git - onak.git/blobdiff - sigcheck.c
Add defines for nettle_get_secp_* for Nettle pre 3.4
[onak.git] / 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 */