mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
powerdns: fix ecdsa support
add libressl, drop patch neither openssl 1.0 (headers not found) nor openssl 1.1 (configuration failed when trying to test constants) work, but libressl does
This commit is contained in:
parent
6359e9baf0
commit
15c629334d
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchurl, pkgconfig
|
{ stdenv, fetchurl, pkgconfig
|
||||||
, boost, libyamlcpp, libsodium, sqlite, protobuf, botan2
|
, boost, libyamlcpp, libsodium, sqlite, protobuf, botan2, libressl
|
||||||
, mysql57, postgresql, lua, openldap, geoip, curl, opendbx, unixODBC
|
, mysql57, postgresql, lua, openldap, geoip, curl, opendbx, unixODBC
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -15,12 +15,7 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
boost mysql57.connector-c postgresql lua openldap sqlite protobuf geoip
|
boost mysql57.connector-c postgresql lua openldap sqlite protobuf geoip
|
||||||
libyamlcpp libsodium curl opendbx unixODBC botan2
|
libyamlcpp libsodium curl opendbx unixODBC botan2 libressl
|
||||||
];
|
|
||||||
|
|
||||||
patches = [
|
|
||||||
# checksum type not found, maybe a dependency is to old?
|
|
||||||
./skip-sha384-test.patch
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# nix destroy with-modules arguments, when using configureFlags
|
# nix destroy with-modules arguments, when using configureFlags
|
||||||
|
@ -29,6 +24,7 @@ stdenv.mkDerivation rec {
|
||||||
"--with-modules=bind gmysql geoip godbc gpgsql gsqlite3 ldap lua mydns opendbx pipe random remote"
|
"--with-modules=bind gmysql geoip godbc gpgsql gsqlite3 ldap lua mydns opendbx pipe random remote"
|
||||||
--with-sqlite3
|
--with-sqlite3
|
||||||
--with-socketdir=/var/lib/powerdns
|
--with-socketdir=/var/lib/powerdns
|
||||||
|
--with-libcrypto=${libressl.dev}
|
||||||
--enable-libsodium
|
--enable-libsodium
|
||||||
--enable-botan
|
--enable-botan
|
||||||
--enable-tools
|
--enable-tools
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
--- pdns-4.1.1.org/pdns/test-signers.cc 2018-02-17 11:43:15.953228279 +0000
|
|
||||||
+++ pdns-4.1.1/pdns/test-signers.cc 2018-02-17 11:44:21.089516393 +0000
|
|
||||||
@@ -212,11 +212,6 @@
|
|
||||||
BOOST_CHECK_EQUAL(ds2.getZoneRepresentation(), signer.dsSHA256);
|
|
||||||
}
|
|
||||||
|
|
||||||
- auto ds4 = makeDSFromDNSKey(name, drc, DNSSECKeeper::SHA384);
|
|
||||||
- if (!signer.dsSHA384.empty()) {
|
|
||||||
- BOOST_CHECK_EQUAL(ds4.getZoneRepresentation(), signer.dsSHA384);
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
auto signature = dcke->sign(message);
|
|
||||||
BOOST_CHECK(dcke->verify(message, signature));
|
|
||||||
|
|
Loading…
Reference in a new issue