From: Vladimír Čunát Date: Tue, 1 Sep 2020 10:44:15 +0000 (+0200) Subject: lib/dnssec: fix build against libdnssec 3.0 X-Git-Tag: v5.1.3~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24c0f31b1de65921212b2dda460f1de73e734999;p=thirdparty%2Fknot-resolver.git lib/dnssec: fix build against libdnssec 3.0 It hasn't been released yet, but this patch fixes build against current Knot master already. --- diff --git a/NEWS b/NEWS index ff3fba646..b5866815d 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,7 @@ Improvements - cache: add percentage usage to cache.stats() (!1025) - cache: add number of cache entries to cache.stats() (!1028) - aarch64 support again, as some systems still didn't work (!1033) +- support building against Knot DNS 3.0 (!1053) Bugfixes -------- diff --git a/lib/dnssec/signature.c b/lib/dnssec/signature.c index dfb6ad055..fed0cf4c3 100644 --- a/lib/dnssec/signature.c +++ b/lib/dnssec/signature.c @@ -282,7 +282,12 @@ int kr_check_signature(const knot_rdata_t *rrsig, goto fail; } - if (dnssec_sign_verify(sign_ctx, &signature) != 0) { + ret = dnssec_sign_verify(sign_ctx, + #if KNOT_VERSION_MAJOR >= 3 + false, + #endif + &signature); + if (ret != 0) { ret = kr_error(EBADMSG); goto fail; }