diff options
author | Steven Barth <steven@midlink.org> | 2014-06-18 10:04:47 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-06-18 10:04:47 +0000 |
commit | 12b41b0c5f75f4217a776e4d6ba3a063a7051c88 (patch) | |
tree | 285ccdfec46606b112cc1bb72629ec15700be402 /package/network/services | |
parent | d42c79ad4db379a5e37075d35be3e4fd916e560a (diff) | |
download | master-187ad058-12b41b0c5f75f4217a776e4d6ba3a063a7051c88.tar.gz master-187ad058-12b41b0c5f75f4217a776e4d6ba3a063a7051c88.tar.bz2 master-187ad058-12b41b0c5f75f4217a776e4d6ba3a063a7051c88.zip |
dnsmasq: compatibility with nettle 3.0
Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41249 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services')
-rw-r--r-- | package/network/services/dnsmasq/patches/120-nettle-3.0-compatibility.patch | 29 |
1 files changed, 29 insertions, 0 deletions
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 0000000000..2e5fc2ae34 --- /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 <nettle/rsa.h> +-#include <nettle/dsa.h> ++#include <nettle/dsa-compat.h> + #ifndef NO_NETTLE_ECC + # include <nettle/ecdsa.h> + # include <nettle/ecc-curve.h> +@@ -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: |