From 00da8f4d0edf4a0c9fbb97ed93751582064b1e49 Mon Sep 17 00:00:00 2001 From: Sander Hoentjen Date: Sat, 30 Apr 2022 10:44:26 +0200 Subject: [PATCH] Update to 1.7.1 --- .gitignore | 1 + dnsdist-1.7.0-openssl30.patch | 37 ----------------------------------- dnsdist.spec | 9 +++++---- sources | 2 +- 4 files changed, 7 insertions(+), 42 deletions(-) delete mode 100644 dnsdist-1.7.0-openssl30.patch diff --git a/.gitignore b/.gitignore index 683a9fc..59d111a 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ /dnsdist-1.6.0.tar.bz2 /dnsdist-1.6.1.tar.bz2 /dnsdist-1.7.0.tar.bz2 +/dnsdist-1.7.1.tar.bz2 diff --git a/dnsdist-1.7.0-openssl30.patch b/dnsdist-1.7.0-openssl30.patch deleted file mode 100644 index af1aacd..0000000 --- a/dnsdist-1.7.0-openssl30.patch +++ /dev/null @@ -1,37 +0,0 @@ -From d0fe73a0910c52c5ad9a57fbebea260ef22f4be4 Mon Sep 17 00:00:00 2001 -From: Remi Gacogne -Date: Mon, 17 Jan 2022 15:44:01 +0100 -Subject: [PATCH] dnsdist-1.7.x: Fix compilation with OpenSSL 3.0.0 - ---- - pdns/credentials.cc | 10 ++++++++-- - 1 file changed, 8 insertions(+), 2 deletions(-) - -diff --git a/pdns/credentials.cc b/pdns/credentials.cc -index b3a09e5c819..d058a948ac1 100644 ---- a/pdns/credentials.cc -+++ b/pdns/credentials.cc -@@ -31,6 +31,7 @@ - #ifdef HAVE_EVP_PKEY_CTX_SET1_SCRYPT_SALT - #include - #include -+#include - #include - #endif - -@@ -105,8 +106,13 @@ static std::string hashPasswordInternal(const std::string& password, const std:: - throw std::runtime_error("Error intializing the scrypt context to hash the supplied password"); - } - -- // OpenSSL 3.0 changed the string arg to const unsigned char*, other versions use const char *, so cast to const void * to satisfy both -- if (EVP_PKEY_CTX_set1_pbe_pass(pctx.get(), reinterpret_cast(password.data()), password.size()) <= 0) { -+ // OpenSSL 3.0 changed the string arg to const unsigned char*, other versions use const char * -+#if OPENSSL_VERSION_MAJOR >= 3 -+ auto passwordData = reinterpret_cast(password.data()); -+#else -+ auto passwordData = reinterpret_cast(password.data()); -+#endif -+ if (EVP_PKEY_CTX_set1_pbe_pass(pctx.get(), passwordData, password.size()) <= 0) { - throw std::runtime_error("Error adding the password to the scrypt context to hash the supplied password"); - } - diff --git a/dnsdist.spec b/dnsdist.spec index da3bcbc..47fda6f 100644 --- a/dnsdist.spec +++ b/dnsdist.spec @@ -6,8 +6,8 @@ %endif Name: dnsdist -Version: 1.7.0 -Release: 2%{?dist} +Version: 1.7.1 +Release: 1%{?dist} Summary: Highly DNS-, DoS- and abuse-aware loadbalancer License: GPLv2 URL: https://dnsdist.org @@ -46,8 +46,6 @@ Requires(post): systemd Requires(preun): shadow-utils Requires(preun): systemd Requires(postun): systemd -#https://github.com/PowerDNS/pdns/pull/11195 -Patch0: dnsdist-1.7.0-openssl30.patch %description dnsdist is a highly DNS-, DoS- and abuse-aware loadbalancer. Its goal in life @@ -120,6 +118,9 @@ exit 0 %changelog +* Sat Apr 30 2022 Sander Hoentjen - 1.7.1-1 +- Update to 1.7.1 + * Thu Jan 20 2022 Fedora Release Engineering - 1.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources index ac14d62..e7c9cb1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (dnsdist-1.7.0.tar.bz2) = abaed7aaa18f4acaf220dc938da6896e521373b1da3b6b9c4114467dd5d8b0e6cd9809534edbc6ba5b789ed8387fb47317c47bd4e00e66a6ccb035f6dd6068af +SHA512 (dnsdist-1.7.1.tar.bz2) = eee44a9994c6cab84977cad58539ca59882149d6898dfeed9e4190f06ddbc280b836bf426d22e6980d8acae1437290bddcc5166af165b6eb48c77c669281a310