X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=package%2Flibs%2Fnettle%2Fpatches%2F0005-allow-der-iterator-to-be-used-with-mini-gmp.patch;fp=package%2Flibs%2Fnettle%2Fpatches%2F0005-allow-der-iterator-to-be-used-with-mini-gmp.patch;h=ef282623f6ab0375322ca3eb161baae1d57fe93c;hp=0000000000000000000000000000000000000000;hb=a0e19ec2f9aa8162bcb84659a5dbf5119cefb4b4;hpb=335529e207b9d3a694f9626803b17dc87f851625 diff --git a/package/libs/nettle/patches/0005-allow-der-iterator-to-be-used-with-mini-gmp.patch b/package/libs/nettle/patches/0005-allow-der-iterator-to-be-used-with-mini-gmp.patch new file mode 100644 index 0000000000..ef282623f6 --- /dev/null +++ b/package/libs/nettle/patches/0005-allow-der-iterator-to-be-used-with-mini-gmp.patch @@ -0,0 +1,29 @@ +From d71b3138cbdc3852c96a2639995f2d7f44b1c76c Mon Sep 17 00:00:00 2001 +From: Nikos Mavrogiannopoulos +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(-) + +--- a/der-iterator.c ++++ b/der-iterator.c +@@ -38,7 +38,7 @@ + #include + #include + +-#if HAVE_LIBGMP ++#if defined(HAVE_LIBGMP) || defined(USE_MINI_GMP) + #include "bignum.h" + #endif + +@@ -254,7 +254,7 @@ asn1_der_get_uint32(struct asn1_der_iter + 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)