From 087ea853b49988c059856f490772a392553b5c46 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 18 Jun 2014 10:04:47 +0000 Subject: [PATCH] dnsmasq: compatibility with nettle 3.0 Signed-off-by: Steven Barth SVN-Revision: 41249 --- .../120-nettle-3.0-compatibility.patch | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package/network/services/dnsmasq/patches/120-nettle-3.0-compatibility.patch diff --git a/package/network/services/dnsmasq/patches/120-nettle-3.0-compatibility.patch b/package/network/services/dnsmasq/patches/120-nettle-3.0-compatibility.patch new file mode 100644 index 000000000000..2e5fc2ae34fd --- /dev/null +++ b/package/network/services/dnsmasq/patches/120-nettle-3.0-compatibility.patch @@ -0,0 +1,29 @@ +--- a/src/dnssec.c ++++ b/src/dnssec.c +@@ -20,7 +20,7 @@ + #ifdef HAVE_DNSSEC + + #include +-#include ++#include + #ifndef NO_NETTLE_ECC + # include + # include +@@ -173,7 +173,7 @@ static int rsa_verify(struct blockdata * + return 0; + } + +-static int dsa_verify(struct blockdata *key_data, unsigned int key_len, unsigned char *sig, size_t sig_len, ++static int dnsmasq_dsa_verify(struct blockdata *key_data, unsigned int key_len, unsigned char *sig, size_t sig_len, + unsigned char *digest, int algo) + { + unsigned char *p; +@@ -296,7 +296,7 @@ static int verify(struct blockdata *key_ + return rsa_verify(key_data, key_len, sig, sig_len, digest, algo); + + case 3: case 6: +- return dsa_verify(key_data, key_len, sig, sig_len, digest, algo); ++ return dnsmasq_dsa_verify(key_data, key_len, sig, sig_len, digest, algo); + + #ifndef NO_NETTLE_ECC + case 13: case 14: -- 2.30.2