summaryrefslogtreecommitdiff
path: root/net/openslp
diff options
context:
space:
mode:
authormrg <mrg@pkgsrc.org>2018-04-17 18:42:10 +0000
committermrg <mrg@pkgsrc.org>2018-04-17 18:42:10 +0000
commit9c67ecbf3bbf7f7c5e6f3d62c28b8a5d553fbb70 (patch)
treec4154eb09f31f7b63df17af90781a17916792e63 /net/openslp
parent1125bf5c938127211a91754c73d691081b009a72 (diff)
downloadpkgsrc-9c67ecbf3bbf7f7c5e6f3d62c28b8a5d553fbb70.tar.gz
port this to openssl 1.1 hosts.
should only fix broken builds thus a pkg bump is not wanted.
Diffstat (limited to 'net/openslp')
-rw-r--r--net/openslp/distinfo3
-rw-r--r--net/openslp/patches/patch-common-slp_crypto.c28
2 files changed, 30 insertions, 1 deletions
diff --git a/net/openslp/distinfo b/net/openslp/distinfo
index 2ed051eabe5..a6cc01af4f9 100644
--- a/net/openslp/distinfo
+++ b/net/openslp/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.19 2016/02/11 15:12:06 he Exp $
+$NetBSD: distinfo,v 1.20 2018/04/17 18:42:10 mrg Exp $
SHA1 (openslp-1.2.1.tar.gz) = 47ab19154084d2b467f09525f5351e9ab7193cf9
RMD160 (openslp-1.2.1.tar.gz) = a31d516ba784ad893a740946082fe5e0f15a37ea
@@ -14,4 +14,5 @@ SHA1 (patch-aj) = 8e1d32772cf59a938a4d9d9d0957d223f4ea6c06
SHA1 (patch-ak) = e64ede590e4af9d8951177b68c4bbf1b56ebdfae
SHA1 (patch-al) = 19fa24e2ac362c3e45413826cd139ced984e8adc
SHA1 (patch-am) = 7b8a47f0998202aab9c82278a2c405584eb3fea4
+SHA1 (patch-common-slp_crypto.c) = 094bdbc31cfd4f872001a4d2236e3c6b1a1625d9
SHA1 (patch-slpd_slpd__knownda.c) = c01286e4dfedc2112272405934cbe4097f90fd07
diff --git a/net/openslp/patches/patch-common-slp_crypto.c b/net/openslp/patches/patch-common-slp_crypto.c
new file mode 100644
index 00000000000..dc7b42778f7
--- /dev/null
+++ b/net/openslp/patches/patch-common-slp_crypto.c
@@ -0,0 +1,28 @@
+$NetBSD: patch-common-slp_crypto.c,v 1.1 2018/04/17 18:42:10 mrg Exp $
+
+port to OpenSSL 1.1.
+
+--- common/slp_crypto.c.orig 2005-02-08 14:23:27.000000000 -0800
++++ common/slp_crypto.c 2018-04-17 01:27:35.975421083 -0700
+@@ -90,11 +90,21 @@
+ result = DSA_new();
+ if(result)
+ {
++#if OPENSSL_VERSION_NUMBER < 0x10100000L
+ result->p = BN_dup(dsa->p);
+ result->q = BN_dup(dsa->q);
+ result->g = BN_dup(dsa->g);
+ result->priv_key = BN_dup(dsa->priv_key);
+ result->pub_key = BN_dup(dsa->pub_key);
++#else
++ const BIGNUM *p, *q, *g;
++ const BIGNUM *pub_key, *priv_key;
++
++ DSA_get0_pqg(dsa, &p, &q, &g);
++ DSA_set0_pqg(result, BN_dup(p), BN_dup(q), BN_dup(g));
++ DSA_get0_key(dsa, &pub_key, &priv_key);
++ DSA_set0_key(result, BN_dup(pub_key), BN_dup(priv_key));
++#endif
+ }
+
+ return result;