diff options
author | Steven Barth <steven@midlink.org> | 2014-06-18 10:04:43 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-06-18 10:04:43 +0000 |
commit | d42c79ad4db379a5e37075d35be3e4fd916e560a (patch) | |
tree | ab365bbb8f0f9b4da8cc7cf39354eeb7265700ab /package/libs/nettle/patches/0005-allow-der-iterator-to-be-used-with-mini-gmp.patch | |
parent | 482db48d301d42918df574a3c192fee1a806f231 (diff) | |
download | upstream-d42c79ad4db379a5e37075d35be3e4fd916e560a.tar.gz upstream-d42c79ad4db379a5e37075d35be3e4fd916e560a.tar.bz2 upstream-d42c79ad4db379a5e37075d35be3e4fd916e560a.zip |
nettle: import from packages, update to 3.0
Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41248 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/libs/nettle/patches/0005-allow-der-iterator-to-be-used-with-mini-gmp.patch')
-rw-r--r-- | package/libs/nettle/patches/0005-allow-der-iterator-to-be-used-with-mini-gmp.patch | 29 |
1 files changed, 29 insertions, 0 deletions
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 <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(-) + +--- a/der-iterator.c ++++ b/der-iterator.c +@@ -38,7 +38,7 @@ + #include <assert.h> + #include <stdlib.h> + +-#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) |