]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/dnssec: fix build against libdnssec 3.0
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 1 Sep 2020 10:44:15 +0000 (12:44 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 1 Sep 2020 11:07:56 +0000 (13:07 +0200)
It hasn't been released yet, but this patch fixes build against
current Knot master already.

NEWS
lib/dnssec/signature.c

diff --git a/NEWS b/NEWS
index ff3fba646d8c3b33931c4098b381720045bde5c4..b5866815daa48c1b67505c3054196766df1c6b13 100644 (file)
--- 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
 --------
index dfb6ad0553da9f6102a8702312300e60ada04ad9..fed0cf4c3853d01d7541ae11837db4ce0376c94e 100644 (file)
@@ -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;
        }