Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] dnsmasq can be built with dnssec support in new nettle versions
@ 2019-09-07 13:21 voidlinux-github
  2019-09-07 13:35 ` voidlinux-github
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: voidlinux-github @ 2019-09-07 13:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 361 bytes --]

There is a new pull request by bagginslin against master on the void-packages repository

https://github.com/bagginslin/void-packages dnsmasq_nettle
https://github.com/void-linux/void-packages/pull/14282

dnsmasq can be built with dnssec support in new nettle versions


A patch file from https://github.com/void-linux/void-packages/pull/14282.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dnsmasq_nettle-14282.patch --]
[-- Type: text/x-diff, Size: 2157 bytes --]

From 6e971e326f81a54e76dc1dfc06721afc0e863bee Mon Sep 17 00:00:00 2001
From: bagginslin <bagginslin@protonmail.com>
Date: Sat, 7 Sep 2019 13:57:24 +0100
Subject: [PATCH] Added patch which allows dnsmasq to be built with dnssec
 support for new nettle versions

---
 srcpkgs/dnsmasq/patches/nettle35.patch | 31 ++++++++++++++++++++++++++
 srcpkgs/dnsmasq/template               |  2 +-
 2 files changed, 32 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/dnsmasq/patches/nettle35.patch

diff --git a/srcpkgs/dnsmasq/patches/nettle35.patch b/srcpkgs/dnsmasq/patches/nettle35.patch
new file mode 100644
index 00000000000..c87646d150e
--- /dev/null
+++ b/srcpkgs/dnsmasq/patches/nettle35.patch
@@ -0,0 +1,31 @@
+--- src/crypto.c
++++ src/crypto.c
+@@ -275,6 +275,10 @@ static int dnsmasq_ecdsa_verify(struct b
+   static struct ecc_point *key_256 = NULL, *key_384 = NULL;
+   static mpz_t x, y;
+   static struct dsa_signature *sig_struct;
++#if NETTLE_VERSION_MAJOR == 3 && NETTLE_VERSION_MINOR < 4
++#define nettle_get_secp_256r1() (&nettle_secp_256r1)
++#define nettle_get_secp_384r1() (&nettle_secp_384r1)
++#endif
+ 
+   if (!sig_struct)
+     {
+@@ -294,7 +298,7 @@ static int dnsmasq_ecdsa_verify(struct b
+ 	  if (!(key_256 = whine_malloc(sizeof(struct ecc_point))))
+ 	    return 0;
+ 
+-	  nettle_ecc_point_init(key_256, &nettle_secp_256r1);
++	  nettle_ecc_point_init(key_256, nettle_get_secp_256r1());
+ 	}
+ 
+       key = key_256;
+@@ -307,7 +311,7 @@ static int dnsmasq_ecdsa_verify(struct b
+ 	  if (!(key_384 = whine_malloc(sizeof(struct ecc_point))))
+ 	    return 0;
+ 
+-	  nettle_ecc_point_init(key_384, &nettle_secp_384r1);
++	  nettle_ecc_point_init(key_384, nettle_get_secp_384r1());
+ 	}
+ 
+       key = key_384;
diff --git a/srcpkgs/dnsmasq/template b/srcpkgs/dnsmasq/template
index 49824891f6f..121a58f92c8 100644
--- a/srcpkgs/dnsmasq/template
+++ b/srcpkgs/dnsmasq/template
@@ -1,7 +1,7 @@
 # Template file for 'dnsmasq'
 pkgname=dnsmasq
 version=2.80
-revision=4
+revision=5
 conf_files="/etc/dnsmasq.conf"
 hostmakedepends="pkg-config"
 makedepends="dbus-devel libcap-devel libidn2-devel $(vopt_if dnssec nettle-devel)"

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-09-07 15:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-07 13:21 [PR PATCH] dnsmasq can be built with dnssec support in new nettle versions voidlinux-github
2019-09-07 13:35 ` voidlinux-github
2019-09-07 13:36 ` voidlinux-github
2019-09-07 15:44 ` [PR PATCH] [Updated] " voidlinux-github
2019-09-07 15:44 ` voidlinux-github
2019-09-07 15:45 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).