packages/libs/nettle/patches/0005-allow-der-iterator-to-be-used-with-mini-gmp.patch
florian 5f0206834d nettle: Nettle can be configured to not use gmp
This includes a series of unofficial patches that modify nettle
in order to use gmp-mini, see https://github.com/nmav/nettle-mini

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@40722 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-08 00:57:37 +00:00

35 lines
836 B
Diff

From d71b3138cbdc3852c96a2639995f2d7f44b1c76c Mon Sep 17 00:00:00 2001
From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Sat, 29 Mar 2014 09:12:41 +0100
Subject: [PATCH 5/5] allow der-iterator to be used with mini-gmp
---
der-iterator.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/der-iterator.c b/der-iterator.c
index 2e6efd5..5ab15b9 100644
--- a/der-iterator.c
+++ b/der-iterator.c
@@ -30,7 +30,7 @@
#include <assert.h>
#include <stdlib.h>
-#if HAVE_LIBGMP
+#if defined(HAVE_LIBGMP) || defined(USE_MINI_GMP)
#include "bignum.h"
#endif
@@ -246,7 +246,7 @@ asn1_der_get_uint32(struct asn1_der_iterator *i,
return 1;
}
-#if HAVE_LIBGMP
+#if defined(HAVE_LIBGMP) || defined(USE_MINI_GMP)
int
asn1_der_get_bignum(struct asn1_der_iterator *i,
mpz_t x, unsigned max_bits)
--
1.9.2