nettle: import from packages, update to 3.0
[openwrt/staging/chunkeey.git] / package / libs / nettle / patches / 0005-allow-der-iterator-to-be-used-with-mini-gmp.patch
1 From d71b3138cbdc3852c96a2639995f2d7f44b1c76c Mon Sep 17 00:00:00 2001
2 From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
3 Date: Sat, 29 Mar 2014 09:12:41 +0100
4 Subject: [PATCH 5/5] allow der-iterator to be used with mini-gmp
5
6 ---
7 der-iterator.c | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10 --- a/der-iterator.c
11 +++ b/der-iterator.c
12 @@ -38,7 +38,7 @@
13 #include <assert.h>
14 #include <stdlib.h>
15
16 -#if HAVE_LIBGMP
17 +#if defined(HAVE_LIBGMP) || defined(USE_MINI_GMP)
18 #include "bignum.h"
19 #endif
20
21 @@ -254,7 +254,7 @@ asn1_der_get_uint32(struct asn1_der_iter
22 return 1;
23 }
24
25 -#if HAVE_LIBGMP
26 +#if defined(HAVE_LIBGMP) || defined(USE_MINI_GMP)
27 int
28 asn1_der_get_bignum(struct asn1_der_iterator *i,
29 mpz_t x, unsigned max_bits)