From 24c0f31b1de65921212b2dda460f1de73e734999 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 1 Sep 2020 12:44:15 +0200 Subject: [PATCH] lib/dnssec: fix build against libdnssec 3.0 It hasn't been released yet, but this patch fixes build against current Knot master already. --- NEWS | 1 + lib/dnssec/signature.c | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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; } -- 2.47.2